UnityEngine.GUILayoutUtility.GetRect C# (CSharp) Method

GetRect() public static method

Reserve layout space for a rectangle with a fixed content area.

public static GetRect ( float width, float height ) : Rect
width float The width of the area you want.
height float The height of the area you want.
return Rect
        public static Rect GetRect(float width, float height)
        {
            return DoGetRect(width, width, height, height, GUIStyle.none, null);
        }

Same methods

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