GUILayoutUtility.GetRectstatic function GetRect (content : GUIContent, style : GUIStyle) : Rectstatic function GetRect (content : GUIContent, style : GUIStyle, params options : GUILayoutOption[]) : RectParameters
ReturnsRect - A rectangle that is large enough to contain content when rendered in style. DescriptionReserve layout space for a rectangle for displaying some contents with a specific style.
JavaScript
// Shows the button rect properties in a label when the mouse is over it using UnityEngine; import UnityEngine
static function GetRect (width : float, height : float) : Rectstatic function GetRect (width : float, height : float, params options : GUILayoutOption[]) : Rectstatic function GetRect (width : float, height : float, style : GUIStyle, params options : GUILayoutOption[]) : RectParameters
ReturnsRect - The rectanlge to put your control in. DescriptionReserve layout space for a rectangle with a fixed content area. static function GetRect (minWidth : float, maxWidth : float, minHeight : float, maxHeight : float) : Rectstatic function GetRect (minWidth : float, maxWidth : float, minHeight : float, maxHeight : float, style : GUIStyle) : Rectstatic function GetRect (minWidth : float, maxWidth : float, minHeight : float, maxHeight : float, params options : GUILayoutOption[]) : Rectstatic function GetRect (minWidth : float, maxWidth : float, minHeight : float, maxHeight : float, style : GUIStyle, params options : GUILayoutOption[]) : RectParameters
ReturnsRect - a rectangle with size between minWidth & maxWidth on both axes DescriptionReserve layout space for a flexible rect. The rectangle's size will be between the min & max values. |
