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 ) : 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.
return Rect
        public static Rect GetRect(float minWidth, float maxWidth, float minHeight, float maxHeight)
        {
            return DoGetRect(minWidth, maxWidth, minHeight, maxHeight, GUIStyle.none, 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, GUIStyle style ) : Rect