Description
The Vector3Int.Left
field is a static, read-only field of type Vector3Int
. It represents a directional vector pointing to the left in a 3D space, with the Y component set to -1 and the other components set to 0. This field is useful for operations that require a consistent leftward direction, such as moving an object left in a grid or determining the left side of an object.
Usage
Use Vector3Int.Left
when you need a predefined vector that points to the left. This can be particularly useful in scenarios involving directional movement or alignment in 3D space.
Example
// Example of using Vector3Int.Left
Vector3Int leftDirection = Vector3Int.Left;
// Use the leftDirection vector to move an object left
GameObject myObject = new GameObject();
myObject.Position += leftDirection;