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