Unity - Scripting API: Vector2.Vector2
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Returns
Vector2
A Vector2 initialized with components v.x and v.y.
An implicit conversion operator that converts an input Vector3 value to a Vector2. The Vector3.x and Vector3.y components are used to initialize the result and the Vector3.z component is discarded.