From bbc221086abab1a9491bf698de2229a4a18440ba Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 25 Apr 2025 17:55:07 -0500 Subject: [PATCH 1/2] Fix GUI input when edit GUI option is false and game is being played. --- Source/Editor/Windows/GameWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index 02d4b8351..b117eaa3d 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -292,7 +292,7 @@ namespace FlaxEditor.Windows private class GameRoot : UIEditorRoot { internal bool Editable = true; - public override bool EnableInputs => !Time.GamePaused && Editor.IsPlayMode && Editable; + public override bool EnableInputs => !Time.GamePaused && (Editor.IsPlayMode || Editable); public override bool EnableSelecting => (!Editor.IsPlayMode || Time.GamePaused) && Editable; public override TransformGizmo TransformGizmo => Editor.Instance.MainTransformGizmo; } From 9d527ab4a6326f1fc15b9c68e93886bb29ad0c7c Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 25 Apr 2025 20:36:53 -0500 Subject: [PATCH 2/2] Remove editable from check for enabling inputs for game window GUI. --- Source/Editor/Windows/GameWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index b117eaa3d..f738a7a8c 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -292,7 +292,7 @@ namespace FlaxEditor.Windows private class GameRoot : UIEditorRoot { internal bool Editable = true; - public override bool EnableInputs => !Time.GamePaused && (Editor.IsPlayMode || Editable); + public override bool EnableInputs => !Time.GamePaused && Editor.IsPlayMode; public override bool EnableSelecting => (!Editor.IsPlayMode || Time.GamePaused) && Editable; public override TransformGizmo TransformGizmo => Editor.Instance.MainTransformGizmo; }