Component:AvatarAudioConfiguration

From Resonite Wiki


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
AvatarAudioConfiguration component as seen in the Scene Inspector

Avatar Audio Configuration is a component that allows for overriding Avatar Audio Output Manager voice configs in worlds using user injection.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Normal direct VoiceModeConfig The settings to override NormalConfig on an Avatar Audio Output Manager with.
Shout direct VoiceModeConfig The settings to override ShoutConfig on an Avatar Audio Output Manager with.
Broadcast direct VoiceModeConfig The settings to override BroadcastConfig on an Avatar Audio Output Manager with.

Usage

attach this component as part of the hierarchy of a slot that is put into AutoInject on a Common Avatar Builder Component on the world root. When the component is injected, it will auto fill itself into the _audioConfiguration of the user's Avatar Audio Output Manager and allow for overriding the user's audio config.

Examples

This can be used to make a world system where if a user is in a different room than you, their voice will automatically silence locally for you, so you cannot hear them. This can be useful for making sound proof rooms. The opposite can be done, where a user going up to a microphone on a stand in a world will make their voice global for everyone, or only for people in a room for the speaker that microphone controls.

This can also be used to make a world system where voices are culled depending on where you look as well. which can act like a world-sided Earmuffs mode like the one in settings.

Related Components