book_4_sparkGenerated
code_blocksInput

Description

An integer vector with X set to 1. This represents the right direction.

Usage

The Vector2Int.Right field is a static member of the Vector2Int struct. It is used to represent a direction vector pointing to the right, with the X component set to 1 and the Y component set to 0. This is useful in scenarios where you need a constant vector to indicate movement or orientation towards the right in a 2D space.

Example

// Example usage of Vector2Int.Right
Vector2Int position = new Vector2Int(5, 10);
Vector2Int newPosition = position + Vector2Int.Right;
// newPosition is now (6, 10)