Fix GUI input when edit GUI option is false and game is being played.

This commit is contained in:
Chandler Cox
2025-04-25 17:55:07 -05:00
parent f0bcc70563
commit bbc221086a

View File

@@ -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;
}