Merge branch 'Tryibion-show-hidden-game-win-play'
This commit is contained in:
@@ -99,6 +99,10 @@ namespace FlaxEditor.Modules
|
|||||||
{
|
{
|
||||||
if (Editor.StateMachine.IsEditMode)
|
if (Editor.StateMachine.IsEditMode)
|
||||||
{
|
{
|
||||||
|
// Show Game window if hidden
|
||||||
|
if (Editor.Windows.GameWin.IsHidden)
|
||||||
|
Editor.Windows.GameWin.Show();
|
||||||
|
|
||||||
Editor.Log("[PlayMode] Start");
|
Editor.Log("[PlayMode] Start");
|
||||||
|
|
||||||
if (Editor.Options.Options.General.AutoReloadScriptsOnMainWindowFocus)
|
if (Editor.Options.Options.General.AutoReloadScriptsOnMainWindowFocus)
|
||||||
@@ -131,6 +135,10 @@ namespace FlaxEditor.Modules
|
|||||||
if (!Editor.StateMachine.IsEditMode)
|
if (!Editor.StateMachine.IsEditMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Show Game window if hidden
|
||||||
|
if (Editor.Windows.GameWin.IsHidden)
|
||||||
|
Editor.Windows.GameWin.Show();
|
||||||
|
|
||||||
var firstScene = Content.Settings.GameSettings.Load().FirstScene;
|
var firstScene = Content.Settings.GameSettings.Load().FirstScene;
|
||||||
if (firstScene == Guid.Empty)
|
if (firstScene == Guid.Empty)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user