RectOffset.RectOffset 构造矩形偏移

static function RectOffset () : RectOffset
static function RectOffset (left : int, right : int, top : int, bottom : int) : RectOffset

Description描述

Creates a new rectangle with offsets.

创建一个新的矩形偏移。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public RectOffset rect = new RectOffset(0, 10, 0, 10);
}
var rect = RectOffset (0, 10, 0, 10);
Page last updated: 2011-3-13