void SceneChange(string path, OpenSceneMode mode) { IconGenerator window = (IconGenerator)EditorWindow.GetWindow(typeof(IconGenerator)); window.Close(); }