Skip to content

On Trigger Stay (Collider) ​

Physics & collisionsDetailedOnTriggerStay

Every physics step while a non-player collider stays in this trigger.

This event happens often: keep heavy work out of it, and keep it on Only my screen.

Happens once per physics update for every collider inside the area: with three objects inside, it runs three times per update. What is inside is the collider for that call.

It needs the same setup as On Trigger Enter: one of the two needs a Rigidbody (On Trigger Enter (Collider)). If entering and leaving are enough, that event and On Trigger Exit are lighter.

Official docs: OnTriggerStay (Unity)

Event values

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

NameType
What is insideCollider

On a card

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

In Udon

In UdonSharp, this is the method:

void OnTriggerStay(Collider other)

In the same category