-
Notifications
You must be signed in to change notification settings - Fork 8
PlayerAudioOverrideList
Guribo edited this page Jul 11, 2026
·
3 revisions
Packages/tlp.udonvoiceutils/Runtime/Core/PlayerAudio/PlayerAudioOverrideList.cs
The sorted list of PlayerAudioOverrides a single player is currently affected by.
The UdonSharpBehaviour PlayerAudioOverrideList is the component which
- is used by the
PlayerAudioControllerto determine which override to apply to a player - contains all overrides a single player is currently affected by
- is always sorted by
PlayerAudioOverride.Priority- highest priority override (or last added with same priority) is at the first position in the list
- automatically removes invalid entries when accessed
- contains no duplicates
| Method | Returns | Description |
|---|---|---|
AddOverride(PlayerAudioOverride) |
bool |
Add an override, maintaining priority sort order |
RemoveOverride(PlayerAudioOverride) |
int |
Remove an override, returns remaining count |
GetMaxPriority(VRCPlayerApi, out PlayerAudioOverride) |
bool |
Get the highest-priority override not blacklisting the player |
Get(int index) |
PlayerAudioOverride |
Get override at index (consolidates invalid entries first) |
Contains(PlayerAudioOverride) |
bool |
Check if the list contains a specific override |
Overrides |
int |
Number of valid overrides in the list |
- When
AddOverrideis called, the override is inserted at the correct position based on priority - When
GetorGetMaxPriorityis called, invalid (destroyed) entries are automatically consolidated -
RemoveOverridecompacts the array and returns the new count
- PlayerAudioController — the controller that reads this list
- PlayerAudioOverride — the override entries in this list
- Architecture
- Occlusion
- Voice Directionality
- Height Scaling
- Audio Processing Pipeline
- Private Voice Channels
- WorldAudio Subsystem
- WorldAudio Limitations
- Set Up Occlusion
- Set Up Voice Channels
- Set Up Reverb
- Set Up Height Scaling
- Set Up Voice Directionality
- Set Up Microphone
- Set Up WorldAudio Emitters
- Enable Debug Mode
- Tutorial #1: Custom Voice Override Zone
- Tutorial #2: Private Voice Channels
- Tutorial #3: Setting Up World Audio
- PlayerAudioController
- PlayerAudioOverride
- PlayerAudioOverrideList
- PlayerAudioView
- PlayerAudioConfigurationModel
- SyncedPlayerAudioConfigurationModel
- VoiceUtils
- IgnoredPlayers
- AudioObstacle
- DefaultPlayerOcclusion
- NullPlayerOcclusion
- PlayerOcclusionStrategy
- Privacy Channel Reference
- AdjustableGain
- DynamicPrivacy
- PickupMicrophone — MVC microphone system with MicModel/MicController/MicView
- VoiceOverrideTriggerZone
- VoiceOverrideRoom