From 24299dc5ccbbb7a76a18ec5fc78e5e34f0388e5c Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 18 Mar 2024 21:36:43 +0100 Subject: [PATCH] Fix game ui inputs to UI when game is paused in Editor --- 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 71addb3ed..c804c26dc 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -200,7 +200,7 @@ namespace FlaxEditor.Windows /// 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; }