示例#1
0
 /// <summary>
 /// Starts the OverlayGUI (Call before any other GUI code!)
 /// </summary>
 public static void StartOverlayGUI()
 {
     if (currentPopup != null && Event.current.type != EventType.Layout && Event.current.type != EventType.Repaint)
     {
         currentPopup.Draw();
     }
 }
示例#2
0
 /// <summary>
 /// Starts the OverlayGUI (Call before any other GUI code!)
 /// </summary>
 public static void StartOverlayGUI(string editorUser)
 {
     currentEditorUser = editorUser;
     if (HasPopupControl() && Event.current.type != EventType.Layout && Event.current.type != EventType.Repaint)
     {
         openedPopup.Draw();
     }
 }