> For the complete documentation index, see [llms.txt](https://docs.tankandhealerstudio.com/assets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tankandhealerstudio.com/assets/ultimatejoystick/documentation/ultimatejoystick/public-methods/updatepositioning.md).

# UpdatePositioning

{% code fullWidth="true" %}

```csharp
using UnityEngine;

public class JoystickExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateJoystick joystick;

	void Update ()
	{
		// If the space bar has been pressed...
    		if( Input.GetKeyDown( KeyCode.Space ) )
    		{
    			// Update the positioning of the joystick to the exact center of the screen.
        		joystick.UpdatePositioning( 50, 50 );
        	}
	}
}
```

{% endcode %}
