unity new vector3 code example Example: how to set a vector 3 variable in csharp Vector3 vector3Variable = new Vector3 (x, y, z);