示例#1
0
 public static void OpenUI()
 {
     if (wnd == null)
     {
         wnd = GetWindow <ProfileEditorIMGUI>();
         wnd.titleContent = new GUIContent("VFS Profile");
         wnd.minSize      = new Vector2(424, 599);
         wnd.maxSize      = new Vector2(425, 600);
         Rect pos = wnd.position;
         pos.width    = 425;
         pos.height   = 600;
         wnd.position = pos;
     }
     else
     {
         wnd.Show();
         wnd.Focus();
     }
 }
示例#2
0
 private void OnDestroy()
 {
     ProfileEditorIMGUI.wnd = null;
 }