Merge branch 'show-hidden-game-win-play' of https://github.com/Tryibion/FlaxEngine into Tryibion-show-hidden-game-win-play

This commit is contained in:
Wojtek Figat
2024-12-16 23:02:15 +01:00

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)
{