triggerBeginEvents
Get the trigger begin events from the last simulation. The PhysicsShape objects returned should be checked to see if they are valid before accessing as they may have been deleted since this event was produced (see PhysicsShape.isValid ). Any change to the world state can invalidate this data so
Read time 1 minuteLast updated a day ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public ReadOnlySpan<PhysicsEvents.TriggerBeginEvent> triggerBeginEvents { get; }