Show game window if hidden when start play.

This commit is contained in:
Chandler Cox
2024-12-11 20:55:49 -06:00
parent 24266b64da
commit 0906a561c4

View File

@@ -99,6 +99,10 @@ namespace FlaxEditor.Modules
{
if (Editor.StateMachine.IsEditMode)
{
// Show Game window if hidden
if (Editor.Windows.GameWin.IsHidden)
Editor.Windows.GameWin.Show();
Editor.Log("[PlayMode] Start");
if (Editor.Options.Options.General.AutoReloadScriptsOnMainWindowFocus)
@@ -131,6 +135,10 @@ namespace FlaxEditor.Modules
if (!Editor.StateMachine.IsEditMode)
return;
// Show Game window if hidden
if (Editor.Windows.GameWin.IsHidden)
Editor.Windows.GameWin.Show();
var firstScene = Content.Settings.GameSettings.Load().FirstScene;
if (firstScene == Guid.Empty)
{