Click or drag to resize

Vector2 Properties

The Vector2 type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDown
Down unit vector. Y is down in 2D, so this vector points +Y.
Public propertyStatic memberInf
Infinity vector, a vector with all components set to `Mathf.Inf`.
Public propertyItem
Access vector components using their index.
Public propertyStatic memberLeft
Left unit vector. Represents the direction of left.
Public propertyStatic memberNegOne
Deprecated, please use a negative sign with One instead.
Public propertyStatic memberOne
One vector, a vector with all components set to `1`.
Public propertyStatic memberRight
Right unit vector. Represents the direction of right.
Public propertyStatic memberUp
Up unit vector. Y is down in 2D, so this vector points -Y.
Public propertyStatic memberZero
Zero vector, a vector with all components set to `0`.
Top
See Also