We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

WHEN TRIGGER IS ENTERED BY OBJECT

Event that runs on a trigger, when an object enters the trigger’s area.

Appearance in Composition Pane
Description

Codeblocks below the when trigger is entered by object line will execute when an object enters the trigger. The trigger must be configured to detect objects with a specific tag, and the object must have that tag. The script should then be attached to the trigger, otherwise you can use connect to or listen to, to receive events from the trigger.
Parameters

object
A reference to the object that entered the trigger gizmo.

Example 1: Paint an object

This paints the object that entered the trigger red.

Next Up