public void OnSaveAsButtonClick() { LevelSaveEditor.Initialize(); LevelSaveEditor creatorEditor = (LevelSaveEditor)EditorWindow.GetWindow(typeof(LevelSaveEditor)); creatorEditor.InitializeLevelEditorConfiguration(configuration); }
public static void Initialize() { LevelSaveEditor window = (LevelSaveEditor)EditorWindow.GetWindow(typeof(LevelSaveEditor)); window.title = "LevelSaveEditor"; window.minSize = new Vector2(400, 100); window.maxSize = new Vector2(400, 100); window.Show(); }