UnityEngine.GUILayoutUtility.GetRect C# (CSharp) Method

GetRect() public static method

Reserve layout space for a rectangle for displaying some contents with a specific style.

public static GetRect ( GUIContent content, GUIStyle style ) : Rect
content GUIContent The content to make room for displaying.
style GUIStyle The GUIStyle to layout for.
return Rect
        public static Rect GetRect(GUIContent content, GUIStyle style)
        {
            return DoGetRect(content, style, null);
        }

Same methods

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
GUILayoutUtility::GetRect ( float minWidth, float maxWidth, float minHeight, float maxHeight, GUIStyle style ) : Rect