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");
 }
示例#3
0
    public static void ShowWindow()
    {
        GUIStyleViewer w = (GUIStyleViewer)EditorWindow.GetWindow <GUIStyleViewer>();

        w.Show();
    }
示例#4
0
 static void Create()
 {
     window          = GetWindow <GUIStyleViewer>("GUIStyleViewer");
     window.position = new Rect(Screen.width / 2 - 330, Screen.height / 2 - 400, 660, 800);
 }