Add profiler events to editor gizmo

This commit is contained in:
Wojtek Figat
2025-07-14 22:24:27 +02:00
parent 20f1e67700
commit ab8612a914
2 changed files with 11 additions and 2 deletions

View File

@@ -155,6 +155,7 @@ namespace FlaxEditor.Gizmo
// Ensure player is not moving objects
if (ActiveAxis != Axis.None)
return;
Profiler.BeginEvent("Pick");
// Get mouse ray and try to hit any object
var ray = Owner.MouseRay;
@@ -243,6 +244,8 @@ namespace FlaxEditor.Gizmo
{
sceneEditing.Deselect();
}
Profiler.EndEvent();
}
/// <inheritdoc />