# OnExitObject

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

```csharp
using UnityEngine;

public class EventExample : MonoBehaviour
{
    void Start ()
    {
        UltimateGamepadCursor.Instance.OnExitObject += ( go ) =>
        {
            Debug.Log( $"Object Exited: {go.name}" );
        };
    }
}
```

{% endcode %}
