> 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/ultimategamepadcursor/documentation/ultimategamepadcursor/public-methods/disable.md).

# Disable

{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```csharp
using UnityEngine;

public class GamepadCursorExample : MonoBehaviour
{
	void Update ()
	{
		if( Input.GetKeyDown( KeyCode.Tab ) )
		{
			if( !UltimateGamepadCursor.Instance.IsEnabled )
			{
				UltimateGamepadCursor.Instance.Enable();
			}
			else
			{
				UltimateGamepadCursor.Instance.Disable();
				// OR // Disable the cursor and reset it's position back to center.
				UltimateGamepadCursor.Instance.Disable( true );
			}
		}
	}
}
```

{% endcode %}
