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.
| Name | Type |
|---|---|
| What touches it | Collision2D |
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
- On Player Collision Enter
- On Trigger Enter (Collider)
- On Trigger Exit (Collider)
- On Player Trigger Stay
- On Player Collision Exit
- On Player Collision Stay
- On Player Particle Collision
- On Controller Collider Hit Player
- On Trigger Stay (Collider)
- On Collision Enter
- On Collision Exit
- On Collision Stay
- On Trigger Enter 2D
- On Trigger Exit 2D
- On Trigger Stay 2D
- On Collision Enter 2D
- On Collision Exit 2D
- On Controller Collider Hit
- On Particle Collision
- On Particle Trigger
- On Joint Break
- On Joint Break 2D
- On Parent Changed
- On Children Changed