LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Rect.zero

public static Rect zero;

Description

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

See Also: Rect.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Rect initialBox = Rect.zero; }