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(); } }
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(); } }
internal static bool EndGUIFromException(Exception exception) { if (exception == null || !(exception is ExitGUIException) && !(exception.InnerException is ExitGUIException)) { return(false); } GUIUtility.Internal_ExitGUI(); return(true); }
internal static bool EndGUIFromException(Exception exception) { bool result; if (!GUIUtility.ShouldRethrowException(exception)) { result = false; } else { GUIUtility.Internal_ExitGUI(); result = true; } return(result); }
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); }
internal static bool EndGUIFromException(Exception exception) { GUIUtility.Internal_ExitGUI(); return(GUIUtility.ShouldRethrowException(exception)); }
internal static void EndContainer() { GUIUtility.Internal_EndContainer(); GUIUtility.Internal_ExitGUI(); }