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."); } }