unity set position

C#
// To set the position of a gameobject use the following
GameObject.transform.position = new Vector3(x, y, z);transform.position = new Vector3(transform.position.x, 0, transform.position.z);
Source

Also in C#: