private static void OpenStyleViewer() { window = GetWindow <GUIStyleViewer>(false, "内置GUIStyle"); }
private static void OpenStyleViewer() { window = GetWindowWithRect <GUIStyleViewer>(new Rect(Screen.width, Screen.height - 100, 1000, 600), false, "查看内置GUIStyle"); }
public static void ShowWindow() { GUIStyleViewer w = (GUIStyleViewer)EditorWindow.GetWindow <GUIStyleViewer>(); w.Show(); }
static void Create() { window = GetWindow <GUIStyleViewer>("GUIStyleViewer"); window.position = new Rect(Screen.width / 2 - 330, Screen.height / 2 - 400, 660, 800); }