Rect 矩形
Struct
A 2D Rectangle defined by x, y position and width, height
一个由x、y位置和width、height大小定义的二维矩形。
The Rect structure is mainly used for 2D operations; The UnityGUI system uses it extensively, as well as positioning cameras on-screen.
Rect结构主要用于2D操作。UnityGUI系统很普遍的使用它,以及在屏幕上定位摄像机。
参见:Camera.rect, Camera.pixelRect
Variables变量
-
Left coordinate of the rectangle.
矩形的左坐标
-
Top coordinate of the rectangle.
矩形的顶坐标,也就是矩形的上方坐标。
-
Width of the rectangle.
矩形的宽度。
-
Height of the rectangle.
矩形的高度
-
Left coordinate of the rectangle.
矩形的左坐标
-
Top coordinate of the rectangle.
矩形的顶坐标
-
Right coordinate of the rectangle.
矩形的右坐标
-
Bottom coordinate of the rectangle.
矩形的底部坐标。
Constructors构造器
Functions函数
Class Functions类函数
-
Creates a rectangle from min/max coordinate values.
从min/max的坐标值创建一个矩形。
-
Returns true if the rectangles are different.
如果比较的矩形是不同的返回真。
-
Returns true if the rectangles are the same.
如果比较的矩形是相同的返回真。
Page last updated: 2010-12-21