triggerEvents
Controls whether this shape produces triggers events which can be retrieved after the simulation has completed. A trigger event is only produced if both shapes involved have their triggerEvents enabled. A trigger event will produce a PhysicsCallbacks.ITriggerCallback to the PhysicsShape.callbackTarget for both shapes involved.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Property
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public bool triggerEvents { get; set; }