PhysicsCallbacks.ITriggerCallback
An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendTriggerCallbacks.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Interface
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public interface PhysicsCallbacks.ITriggerCallback
Methods
Method | Description |
|---|---|
| OnTriggerBegin2D | Called when a PhysicsEvents.TriggerBeginEvent for the object occurs. This will always be called on the main-thread after the simulation has finished. |
| OnTriggerEnd2D | Called when a PhysicsEvents.TriggerEndEvent for the object occurs. This will always be called on the main-thread after the simulation has finished. |