Rect.Rect 矩形

static function Rect (left : float, top : float, width : float, height : float) : Rect

Description描述

Creates a new rectangle.

创建一个新的矩形。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public Rect rect = new Rect(0, 0, 10, 10);
}
var rect = Rect (0, 0, 10, 10);
Page last updated: 2010-12-21