Skip to content

On Collision Stay 2D ​

Physics & collisionsDetailedOnCollisionStay2D

Every physics step while a 2D collider touches this one.

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 touches this one. What touches it is a Collision2D. It isn't sent while the Rigidbody is asleep (On Collision Enter 2D).

Official docs: OnCollisionStay2D (Unity)

Event values

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

NameType
What touches itCollision2D

On a card

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

In Udon

In UdonSharp, this is the method:

void OnCollisionStay2D(Collision2D other)

In the same category