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 EXITED BY OBJECT

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

Appearance in Composition Pane
Description

Codeblocks below the when trigger is exited by object line will execute when an object exits 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 exited the trigger gizmo.


PREREQUISITE READING

WHEN TRIGGER IS ENTERED BY OBJECT precedes this tutorial


Example 1: Paint an object

This paints the object that exited the trigger green.

Next Up