Disable

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 );
			}
		}
	}
}

Last updated

Was this helpful?