示例#1
0
 public static void ShowMyWindowWithRect()
 {
     var      rect   = new Rect(100, 100, 300, 300);
     MyWindow window = EditorWindow.GetWindowWithRect <MyWindow>(rect, false, "我的窗口Rect");
 }
示例#2
0
 public static void ShowMyWindow()
 {
     // 第一个参数为true,不可停靠,为false可停靠
     MyWindow window = EditorWindow.GetWindow <MyWindow>(false, "我的Unity窗口", true);
 }