Add the ability to quickly change window modes for the game window.

This commit is contained in:
MineBill
2023-12-21 19:49:48 +02:00
parent 4e34524a08
commit 87addf8197
4 changed files with 137 additions and 8 deletions

View File

@@ -264,11 +264,14 @@ namespace FlaxEditor.Modules
_enterPlayFocusedWindow = gameWin;
// Show Game widow if hidden
if (gameWin != null && gameWin.FocusOnPlay)
if (gameWin != null)
{
gameWin.FocusGameViewport();
if (gameWin.FocusOnPlay)
gameWin.FocusGameViewport();
gameWin.SetWindowMode(Editor.Options.Options.Interface.DefaultGameWindowMode);
}
Editor.Log("[PlayMode] Enter");
}