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

WHEN BUTTON2 IS PRESSED

Event that runs when button2 on the controller is pressed.

Appearance in Composition Pane
Description

Depending on which Touch Controller, the right or left, is holding the object, B or Y buttons will represent button2.
Parameters

player
The player holding the object.


PREREQUISITE READING

WHEN BUTTON1 IS RELEASED precedes this tutorial


Example 1: Stop music

Consider the remote control example from “when index trigger is pressed,” this enables us to turn off the music.

Next Up