Meta accounts are here: you can create a Meta account to log into VR devices. 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