private void Exit() { this.Close(); var actual = PrefabCollectionWindow.GetWindow <PrefabCollectionWindow>(); actual.ChangeToNone(); EditorSceneManager.OpenScene(previousScene); }
private void Exit() { this.Close(); var actual = PrefabCollectionWindow.GetWindow <PrefabCollectionWindow>(); AssetDatabase.DeleteAsset(scenePath); actual.ChangeToNone(); if (previousScene != ".") { EditorSceneManager.OpenScene(previousScene); } else { EditorSceneManager.OpenScene(SceneManager.GetSceneByBuildIndex(0).path); } }