Vector2 operator in C#

Hi,

I’m having trouble using the Vector2 operator from the Vector2 documentation in C# from the Unity scripting guide. What I need to do is to convert a Vector3 into a Vector2. Unfortunately maybe the operator doesn’t work in C#, or I just don’t know how to use it. Can someone help me please? Thanks

Vector3 v3 = Vector3.one;
Vector2 v2 = v3;

–Eric

Thanks!