Rect.y 顶坐标

var y : float

Description描述

Top coordinate of the rectangle.

矩形的顶坐标,也就是矩形的上方坐标。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public Rect rect = new Rect(10, 10, 100, 100);
	public void Awake() {
		print(rect.y);
		rect.y = 20;
	}
}
var rect = Rect (10, 10, 100, 100);
print(rect.y);
rect.y = 20;
Page last updated: 2013-1-22