Example #1
0
 internal static void FileNewScene()
 {
     if (SceneTemplateProjectSettings.Get().newSceneOverride == SceneTemplateProjectSettings.NewSceneOverride.BuiltinScene)
     {
         EditorApplication.FileMenuNewScene();
     }
     else if (!EditorApplication.isPlaying)
     {
         SceneTemplateDialog.ShowWindow();
     }
     else
     {
         Debug.LogWarning("Cannot open the New Scene dialog while playing.");
     }
 }
Example #2
0
 private static void NewSceneFromTemplate(CommandExecuteContext context)
 {
     SceneTemplateDialog.ShowWindow();
 }