Rect.zero

public static Rect zero;

Description

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

Additional resources: Rect.

using UnityEngine;

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

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