Unity – Game Objects – 2D Position

2D Position

The position of the object in world space.
NOTICE: x,y,z -> 0,0,0 it is the center of the screen

#pragma strict

function Update ()
{     
        // Move the object to (0, 0, 0)
	transform.position = Vector3(0, 0, 0);
		
	// Print the x component of the position to the Console
	print(transform.position.x);
	print(transform.position.y);
	print(transform.position.z);
}

Statement: transform.position = Vector3(x, y, z);

NOTICE: in 2D Games z=0