private static void OpenEditor() { // MapEditorWindow window = EditorWindow.GetWindow<MapEditorWindow>(); MapEditorWindow window = (MapEditorWindow)EditorWindow.GetWindow(typeof(MapEditorWindow)); window.Init(); window.Show(); // Prevent the window from being destroyed when a new // scene is loaded into the editor. // UnityEngine.Object.DontDestroyOnLoad(window); // MapEditorWindow.Create(); }
private void StartMapEditorClick(object sender, RoutedEventArgs e) { MapEditorWindow mapEditor = new MapEditorWindow(); mapEditor.Show(); }
public static void EditMapList() { MapEditorWindow window = EditorWindow.GetWindow <MapEditorWindow>(); window.Show(); }
static void Init() { MapEditorWindow window = EditorWindow.GetWindow <MapEditorWindow>(); window.Show(); }
static void Init() { MapEditorWindow window = (MapEditorWindow)EditorWindow.GetWindow(typeof(MapEditorWindow)); window.Show(); }