static void Init() { // Get existing open window or if none, make a new one LevelWindow window = (LevelWindow)GetWindow(typeof(LevelWindow)); window.Show(); }
static void Init() { // Get existing open window or if none, make a new one: LevelWindow window = (LevelWindow)EditorWindow.GetWindow(typeof(LevelWindow)); window.titleContent.text = "Level Debug"; window.Show(); }