Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 _isValid ). Any change to the world state can invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided. See PhysicsEvents.TriggerBeginEvent.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public ReadOnlySpan<PhysicsEvents.TriggerBeginEvent> triggerBeginEvents { get; }