Fix game ui inputs to UI when game is paused in Editor

This commit is contained in:
Wojtek Figat
2024-03-18 21:36:43 +01:00
parent 5e60d9d267
commit 24299dc5cc

View File

@@ -200,7 +200,7 @@ namespace FlaxEditor.Windows
/// </summary>
private class GameRoot : UIEditorRoot
{
public override bool EnableInputs => !Time.GamePaused;
public override bool EnableInputs => !Time.GamePaused && Editor.IsPlayMode;
public override bool EnableSelecting => !Editor.IsPlayMode || Time.GamePaused;
public override TransformGizmo TransformGizmo => Editor.Instance.MainTransformGizmo;
}