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