public static void OpenWindow() { PrefabMaker mywindow = (PrefabMaker)GetWindow(typeof(PrefabMaker)); mywindow.wantsMouseMove = true; mywindow.Show(); }
public static void OpenWindow() { PrefabMaker mywindow = (PrefabMaker)GetWindow(typeof(PrefabMaker)); mywindow.wantsMouseMove = true; mywindow.Show(); var w = GetWindow <PrefabMaker>(); w.myStyle = new GUIStyle(); w.myStyle.fontStyle = FontStyle.Bold; w.myStyle.alignment = TextAnchor.MiddleCenter; w.myStyle.fontSize = 20; w.myStyle.wordWrap = true; }