Version: 2019.1 (switch to 2018.3 or 2017.4)
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: