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变量

Constructors构造器

Functions函数

Class Functions类函数

Page last updated: 2010-12-21