internal static void DestroyPreviewScene(Scene previewScene)
 {
     if (previewScene.IsValid())
     {
         Undo.ClearUndoSceneHandle(previewScene);
         EditorSceneManager.ClosePreviewScene(previewScene);
     }
 }
Beispiel #2
0
 protected override void OnCloseStage()
 {
     if (scene.IsValid())
     {
         Undo.ClearUndoSceneHandle(scene);
         EditorSceneManager.ClosePreviewScene(scene);
     }
 }