# position

> The world space position of the Transform.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public Vector3 position { get; set; }
```

### Remarks

The [Transform.position](/engine/6000.0/script-reference/unityengine/transform/position.md) property of a [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md)’s [Transform](/engine/6000.0/script-reference/unityengine/transform.md), which is accessible in the Unity Editor and through scripts. Alter this value to move a [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md). Get this value to locate the [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) in 3D world space.

```csharp
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    //movement speed in units per second
    private float movementSpeed = 5f;

    void Update()
    {
        //get the Input from Horizontal axis
        float horizontalInput = Input.GetAxis("Horizontal");
        //get the Input from Vertical axis
        float verticalInput = Input.GetAxis("Vertical");

        //update the position
        transform.position = transform.position + new Vector3(horizontalInput * movementSpeed * Time.deltaTime, verticalInput * movementSpeed * Time.deltaTime, 0);

        //output to log the position change
        Debug.Log(transform.position);
    }
}
```

The example gets the Input from Horizontal and Vertical axes, and moves the GameObject up/down or left/right by changing its position.
