Description
The Vector2Int.Zero
field is a static, public field of the Vector2Int
struct. It represents an integer vector where both the X and Y components are set to 0. This field is useful for initializing or resetting vectors to a zero state, where no movement or direction is represented.
Usage
You can use Vector2Int.Zero
whenever you need a vector with no magnitude or direction. It is often used as a default value or a placeholder in calculations where a zero vector is required.
Example
Vector2Int myVector = Vector2Int.Zero;
// myVector now has x = 0 and y = 0