Skip to content

Api > Vector2 > Implicit Cast Operator ( Vector2 as Vector3 )


Implicit Cast Operator ( Vector2 as Vector3 )⚓︎

Converts a Vector2 to a Vector3.

From Type To Type
Vector2 Vector3

Objects of type Vector2 can be used instead of type Vector3

Extra Detail⚓︎

A Vector2 can be implicitly converted into a Vector3. (The z is set to zero in the result).