UnityEditor.EditorGUILayoutUtilityInternal.BeginLayoutArea C# (CSharp) Method

BeginLayoutArea() static private method

static private BeginLayoutArea ( GUIStyle style, Type LayoutType ) : GUILayoutGroup
style UnityEngine.GUIStyle
LayoutType System.Type
return UnityEngine.GUILayoutGroup
        internal static GUILayoutGroup BeginLayoutArea(GUIStyle style, Type LayoutType)
        {
            return GUILayoutUtility.DoBeginLayoutArea(style, LayoutType);
        }

Usage Example

示例#1
0
        public static void BeginOffsetArea(Rect screenRect, GUIContent content, GUIStyle style)
        {
            GUILayoutGroup guiLayoutGroup = EditorGUILayoutUtilityInternal.BeginLayoutArea(style, typeof(GUILayoutGroup));

            if (Event.current.type == EventType.Layout)
            {
                guiLayoutGroup.resetCoords = false;
                guiLayoutGroup.minWidth    = guiLayoutGroup.maxWidth = screenRect.width + 1f;
                guiLayoutGroup.minHeight   = guiLayoutGroup.maxHeight = screenRect.height + 2f;
                guiLayoutGroup.rect        = Rect.MinMaxRect(-1f, -1f, guiLayoutGroup.rect.xMax, guiLayoutGroup.rect.yMax - 10f);
            }
            GUI.BeginGroup(screenRect, content, style);
        }
All Usage Examples Of UnityEditor.EditorGUILayoutUtilityInternal::BeginLayoutArea
EditorGUILayoutUtilityInternal