diff --git a/Editor/ToolsWindowBase.cs b/Editor/ToolsWindowBase.cs index 64c8bdf..d200732 100644 --- a/Editor/ToolsWindowBase.cs +++ b/Editor/ToolsWindowBase.cs @@ -77,6 +77,7 @@ namespace NegUtils.Editor { if(!EditorPrefs.GetBool("StartFromSceneIndex0")) return; + EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo(); EditorPrefs.SetString("LastOpenedScenePath", EditorSceneManager.GetSceneManagerSetup()[0].path); EditorSceneManager.OpenScene(EditorBuildSettings.scenes[0].path); }