Version: 2023.2
public static RectInt zero ;

描述

Shorthand for writing new RectInt(0,0,0,0).

Additional resources: RectInt.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { RectInt initialBox = RectInt.zero; } }