SendContactCallbacks()
Send all current _contactBeginEvents and _contactEndEvents where either of the PhysicsShape involved are valid (see _isValid ) and have a callback target assigned (see _callbackTarget ). These events will only be created if both of the shape pairs has _contactEvents set to true. Only callback targets that implement PhysicsCallbacks.IContactCallback will be called. This will be called automatically if _autoContactCallbacks is true. This must be called on the main thread.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public void SendContactCallbacks()