Skip to content

triggers

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

("triggers", (TriggerPresentEvent[]) => void): this;

Emitted once a frame with data for every object currently inside the TriggerRegion.

this

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.