Internal_ExitGUI() private static method

private static Internal_ExitGUI ( ) : void
return void
示例#1
0
 internal static void EndGUI(int layoutType)
 {
     try
     {
         if (Event.current.type == EventType.Layout)
         {
             if (layoutType != 0)
             {
                 if (layoutType != 1)
                 {
                     if (layoutType == 2)
                     {
                         GUILayoutUtility.LayoutFromEditorWindow();
                     }
                 }
                 else
                 {
                     GUILayoutUtility.Layout();
                 }
             }
         }
         GUILayoutUtility.SelectIDList(GUIUtility.s_OriginalID, false);
         GUIContent.ClearStaticCache();
     }
     finally
     {
         GUIUtility.Internal_ExitGUI();
     }
 }
示例#2
0
        internal static void EndGUI(int layoutType)
        {
            try
            {
                if (Event.current.type == EventType.Layout)
                {
                    switch (layoutType)
                    {
                    case 1:
                        GUILayoutUtility.Layout();
                        break;

                    case 2:
                        GUILayoutUtility.LayoutFromEditorWindow();
                        break;
                    }
                }
                GUILayoutUtility.SelectIDList(GUIUtility.s_OriginalID, false);
                GUIContent.ClearStaticCache();
            }
            finally
            {
                GUIUtility.Internal_ExitGUI();
            }
        }
示例#3
0
 internal static bool EndGUIFromException(Exception exception)
 {
     if (exception == null || !(exception is ExitGUIException) && !(exception.InnerException is ExitGUIException))
     {
         return(false);
     }
     GUIUtility.Internal_ExitGUI();
     return(true);
 }
示例#4
0
        internal static bool EndGUIFromException(Exception exception)
        {
            bool result;

            if (!GUIUtility.ShouldRethrowException(exception))
            {
                result = false;
            }
            else
            {
                GUIUtility.Internal_ExitGUI();
                result = true;
            }
            return(result);
        }
示例#5
0
 internal static bool EndGUIFromException(Exception exception)
 {
     if (exception == null)
     {
         return(false);
     }
     while (exception is TargetInvocationException && exception.InnerException != null)
     {
         exception = exception.InnerException;
     }
     if (!(exception is ExitGUIException))
     {
         return(false);
     }
     GUIUtility.Internal_ExitGUI();
     return(true);
 }
示例#6
0
 internal static bool EndGUIFromException(Exception exception)
 {
     GUIUtility.Internal_ExitGUI();
     return(GUIUtility.ShouldRethrowException(exception));
 }
示例#7
0
 internal static void EndContainer()
 {
     GUIUtility.Internal_EndContainer();
     GUIUtility.Internal_ExitGUI();
 }