unity convert transform to vector2 code example Example: unity easy convert vector3 to vector2 Vector3 v3 = Vector3.one; Vector2 v2 = v3;