height
The height of the rectangle, measured from the Y position.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public float height { get; set; }
Remarks
Setting this value will also change Rect.yMax.
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Rect rect = new Rect(0, 0, 10, 10); print(rect.height); rect.height = 20; }}