Meta accounts are here: you can create a Meta account to log into VR devices. Learn more

WHEN INDEX TRIGGER IS PRESSED

Event that runs when the index trigger on the controller is pressed.

Appearance in Composition Pane
Description

This event executes when a player presses the index trigger button on their controller while grabbing the object that the script is attached to.
Parameters

player
The player holding the object.

Example 1: Play music

Imagine if this script was attached to a remote control object, and when the index trigger is pressed, it plays MusicObjectVariable. Which could be a music sound object, placed in a speaker, to add local, directional music to your world.

Next Up