# OnEnabled

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

```csharp
using UnityEngine;

public class EventExample : MonoBehaviour
{
    void Start ()
    {
        UltimateGamepadCursor.Instance.OnEnabled += () =>
        {
            Debug.Log( "Cursor Enabled" );
        };
    }
}
```

{% endcode %}
