Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SendTriggerCallbacks()

Send all current _triggerBeginEvents and _triggerEndEvents 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 one of the shape pairs has _triggerEvents set to true. Only callback targets that implement PhysicsCallbacks.ITriggerCallback will be called. This will be called automatically if _autoTriggerCallbacks is true. This must be called on the main thread.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void SendTriggerCallbacks()