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

SET PLAYER VOICE SETTING TO

Control how far a player’s voice can travel.

Appearance in Composition Pane
Description

Different worlds will have different needs for voice range, with the default being set in the Environment Gizmo. The setting can be adjusted with this codeblock to either Mute, Whisper, Environment, Default, Global, Nearby, or Extended.

Environment sets it to the world’s default voice setting. Mute, silences a player, Whisper is for people right next to each other. Nearby reduces how far people can hear the player. Default sets it to a standard distance. Extended allows people to hear the player further away than the Default setting. Global allows everyone in the world to hear the player and has slight direction.
Parameters

range, player

PREREQUISITE READING

PLAY HAPTICS ON PLAYER CONTROLLER precedes this tutorial


Example 1: Alter a player’s voice setting.

Imagine this script attached to a trigger on a theater’s stage. Performers would then get Global audio. You can pair this with the trigger exit event to return a player’s voice back to the environment setting.