Skip to content

On Trigger Exit (Collider) ​

Physics & collisionsDetailedOnTriggerExit

A non-player collider leaves this trigger.

Happens when a collider that was inside the area (a collider with Is Trigger on) leaves it. What left is that collider. Often used to undo what entering changed.

It needs the same setup as On Trigger Enter: one of the two needs a Rigidbody. Unity sends it both to the area and to the collider that left (On Trigger Enter (Collider)).

Official docs: OnTriggerExit (Unity), Interaction between collider types (Unity)

Event values

Values this event has; action settings can use them as targets or values.

NameType
What leftCollider

On a card

WhenOn Trigger Exit (Collider)⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

void OnTriggerExit(Collider other)

In the same category