An integer vector with all components set to 0.
An integer vector with all components set to 0.
The Vector2Int.Zero
field is a static member of the Vector2Int
struct. It represents a vector where both the X and Y components are set to zero. This is useful for initializing vectors or resetting them to a neutral state.
// Example of using Vector2Int.Zero Vector2Int position = Vector2Int.Zero; // Check if a vector is zero if (position == Vector2Int.Zero) { // Do something if the vector is zero }