Пример #1
0
 public static EditorWindow ShowWindow(Type editorWindowType)
 {
     return(EditorWindow.GetWindow(editorWindowType, EE.IsUtilityWindow(editorWindowType)));
 }
Пример #2
0
 public static T ShowWindow <T>() where T : EditorWindow
 {
     return((T)EditorWindow.GetWindow(typeof(T), EE.IsUtilityWindow(typeof(T))));
 }
Пример #3
0
 public static T GetOrCreate()
 {
     return(GetWindow <T>(EE.IsUtilityWindow(typeof(T))));
 }
Пример #4
0
 /*
  * NormalWindow,
  * PopupMenu,
  * Utility,
  * NoShadow,
  * MainWindow,
  * AuxWindow,
  * Tooltip,
  * ModalUtility
  */
 public static T GetWindow <T>() where T : EditorWindow
 {
     return(EditorWindow.GetWindow <T>(EE.IsUtilityWindow(typeof(T))));
 }
Пример #5
0
 public static void Open()
 {
     var window = GetWindow <BuildAssistWindow>(EE.IsUtilityWindow(typeof(BuildAssistWindow)));
 }