// called once after opening the window static void Init() { // setting the window reference editor = (ExampleEditorWindow)EditorWindow.GetWindow(typeof(ExampleEditorWindow)); // title of the window/tab (NOTE: has to be hard coded string) editor.titleContent = new GUIContent("Example"); }
static void Init() { window = (ExampleEditorWindow)EditorWindow.GetWindow(typeof(ExampleEditorWindow)); window.Show(); }