Skip to content

On Trigger Stay 2D ​

Physics & collisionsDetailedOnTriggerStay2D

Every physics step while a 2D collider stays in this 2D trigger.

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

A 2D physics event: it keeps happening while another Collider 2D is inside the 2D area. What is inside is that Collider 2D. The setup is the same as On Trigger Enter 2D.

Official docs: OnTriggerStay2D (Unity)

Event values

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

NameType
What is insideCollider2D

On a card

WhenOn Trigger Stay 2D⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

void OnTriggerStay2D(Collider2D other)

In the same category