private void Exit()
        {
            this.Close();
            var actual = PrefabCollectionWindow.GetWindow <PrefabCollectionWindow>();

            actual.ChangeToNone();
            EditorSceneManager.OpenScene(previousScene);
        }
Example #2
0
        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);
            }
        }