static void Init() { NameGeneratorWindow window = (NameGeneratorWindow)EditorWindow.GetWindow(typeof(NameGeneratorWindow)); #if UNITY_5_0 window.title = windowTitle; #elif UNITY_5_1 || UNITY_5_2 || UNITY_5_3 window.titleContent = new GUIContent(windowTitle); #endif }
static void Init() { NameGeneratorWindow window = (NameGeneratorWindow)EditorWindow.GetWindow(typeof(NameGeneratorWindow)); window.titleContent = new GUIContent(windowTitle); }