unity normalize vector2

C#
Vector2 pos;
Vector2 dir = pos.normalized; 
Source

Also in C#: