Documentation

Unity Engine

Download Unity

Unity Engine

triggerEvents

Controls whether this shape produces trigger events which can be retrieved after the simulation has completed.
Read time 1 minuteLast updated 16 hours ago

Definition

public bool triggerEvents { get; set; }

Remarks

A trigger event is only produced if both shapes involved have their triggerEvents enabled. Turning this off on a shape that is not a trigger hides it from every trigger. A trigger event will produce a PhysicsCallbacks.ITriggerCallback to the PhysicsShape.callbackTarget for both shapes involved.