Add Editor input bindings for Profiler window and Profiler actions

This commit is contained in:
2023-09-17 00:15:26 +03:00
parent 8ed57863b8
commit a1cbaba743
5 changed files with 30 additions and 2 deletions

View File

@@ -116,6 +116,10 @@ namespace FlaxEditor.Windows.Profiler
Parent = this
};
_tabs.SelectedTabChanged += OnSelectedTabChanged;
InputActions.Add(options => options.ProfilerWindow, Hide);
InputActions.Add(options => options.ProfilerStartStop, () => LiveRecording = !LiveRecording);
InputActions.Add(options => options.ProfilerClear, Clear);
}
/// <summary>