GUILayoutUtility.GetAspectRect 获取宽高比的矩形

static function GetAspectRect (aspect : float) : Rect
static function GetAspectRect (aspect : float, style : GUIStyle) : Rect
static function GetAspectRect (aspect : float, params options : GUILayoutOption[]) : Rect
static function GetAspectRect (aspect : float, style : GUIStyle, params options : GUILayoutOption[]) : Rect

Returns

Rect - the rect for the control.

返回Rect类型,这个控件的矩形。

Description描述

Reserve layout space for a rectangle with a specific aspect ratio.

为指定了宽高比的矩形,保留布局空间。就是说,获取一个指定了宽高比的矩形。

Page last updated: 2011-1-3