Add even more profiler events

This commit is contained in:
Wojtek Figat
2021-07-07 15:15:33 +02:00
parent afc5bb5731
commit 6938821467
13 changed files with 115 additions and 18 deletions

View File

@@ -371,12 +371,14 @@ namespace FlaxEditor.Modules
/// <param name="fullCleanup">True if cleanup all data (including serialized and cached data). Otherwise will just clear living references to the scene objects.</param>
public void ClearRefsToSceneObjects(bool fullCleanup = false)
{
Profiler.BeginEvent("SceneModule.ClearRefsToSceneObjects");
Editor.SceneEditing.Deselect();
if (fullCleanup)
{
Undo.Clear();
}
Profiler.EndEvent();
}
private void OnSceneLoaded(Scene scene, Guid sceneId)