Rect.height 高度

var height : float

Description描述

Height of the rectangle.

矩形的高度。

using UnityEngine;
using System.Collections;

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