public float height ;

描述

矩形的高度(从 Y 位置进行测量)。

设置此属性也会更改 yMax

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Rect rect = new Rect(0, 0, 10, 10); print(rect.height); rect.height = 20; } }

Did you find this page useful? Please give it a rating: