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