# Custom Runtime Positioning

Three different functions to use: StartOverridePositioning, StopOverridePositioning, OverrideJoystickSize. You can also reset the stored values by using the ResetOverridePositioning.

#### Overriding the Joystick's Position

To customize the joystick's position and size to cater to player preferences, follow these steps:

**Step 1: Start Position Override**

```csharp
joystick.StartOverridePositioning();
```

Call `StartOverridePositioning` to enable the override mode that allows you to set a new position for the joystick.

**Step 2: Players Move Joystick Position**

After using the StartOverridePositioning function the Ultimate Joystick will stop functioning like a normal joystick and will now adjust it's position to where the player drags it. The information is stored every time the player releases input on the joystick, but the StopOverridePositioning function needs to be used in order to return the Ultimate Joystick to working normally.

**Step 3: Stop Position Override**

```javascript
StopOverridePositioning();
```

After adjusting the position and size, invoke `StopOverridePositioning` to apply the changes and exit override mode.

**Step 4: Reset to Default**

```javascript
ResetOverridePositioning();
```

If you need to revert to the default settings, use `ResetOverridePositioning` to clear the stored overrides.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tankandhealerstudio.com/assets/ultimatejoystick/tips-and-tricks/custom-runtime-positioning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
