Trigger

Trigger allows you to detect Trigger Collisions of an object with the Player, and perform behaviours in response.

Attach this component on a GameObject and ensure to assign a Collider and enable isTrigger.

You can subscribe any behaviour you want to each of the provided events from the Inspector:

  • events:

    • onEnter

    • onStay

    • onExit

Last updated