UnityEngine.GUILayoutUtility.GetRect C# (CSharp) Method

GetRect() public static method

Reserve layout space for a flexible rect.

public static GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style ) : Rect
minWidth float The minimum width of the area passed back.
maxWidth float The maximum width of the area passed back.
minHeight float The minimum width of the area passed back.
maxHeight float The maximum width of the area passed back.
style GUIStyle An optional style. If specified, the style's padding value will be added to the sizes requested & the style's margin values will be used for spacing.
return Rect
        public static Rect GetRect(float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style)
        {
            return DoGetRect(minWidth, maxWidth, minHeight, maxHeight, style, null);
        }

Same methods

GUILayoutUtility::GetRect ( GUIContent content, GUIStyle style ) : Rect
GUILayoutUtility::GetRect ( float width, float height ) : Rect
GUILayoutUtility::GetRect ( float width, float height, GUIStyle style ) : Rect
GUILayoutUtility::GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight ) : Rect