Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

Rect.zero

public static Rect zero;

Description

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

See Also: Rect.

using UnityEngine;

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

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