Enable
using UnityEngine;
public class GamepadCursorExample : MonoBehaviour
{
void Update ()
{
if( Input.GetKeyDown( KeyCode.Tab ) )
{
if( !UltimateGamepadCursor.Instance.IsEnabled )
{
UltimateGamepadCursor.Instance.Enable();
// OR // Enable at the mouse position.
UltimateGamepadCursor.Instance.Enable( Input.mousePosition );
}
else
{
UltimateGamepadCursor.Instance.Disable();
}
}
}
}
Last updated
Was this helpful?