triggers
("triggers", (TriggerPresentEvent[]) => void): this;
Emitted once a frame with data for every object currently inside the TriggerRegion.
Returns
this
Handler Function
When the triggers
event is fired, attached handler functions are called with a single argument, an array of TriggerPresentEvents.
Even if no objects are currently inside the TriggerRegion, this event will still be emitted each frame, with an empty array passed as the argument.