robot_2Generated
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 can be used to represent a direction pointing to the right in a 2D space. This is particularly useful in scenarios where you need a constant vector to indicate movement or orientation towards the right.

Example

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