unity how to get an object x position code example Example: unity get x position float x = transform.position.x;