Add save when exiting scene
This commit is contained in:
parent
5f65b80b8d
commit
9791cf70f7
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user