Skip to content

A settings panel

Updated

A settings panel whose volume slider, mute switch and reset button drive the music: UI Slider, UI Switch and UI Button events handled by one Behavior script that sets an Audio volume.

With your sound on, move the slider, flip Mute and press Reset. Drag outside the panel to orbit the camera, scroll to zoom. The music is a short loop generated for this example.

A settings panel

The script is explained step by step in A settings panel.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

UiSettingsPanel.xrproj