Skip to content

BetterPlayerAudioOverrideList

Guribo edited this page Jul 16, 2021 · 1 revision

BetterPlayerAudioOverrideList

Assets/Guribo/UdonBetterAudio/Runtime/BetterPlayerAudioOverrideList.cs

The list of BetterPlayerAudioOverrides a single player is currently affected by.

Overview

The UdonSharpbehaviour BetterPlayerAudioOverrideList is the component which

  • is used by the BetterPlayerAudio component to determine which override to apply to a player
  • contains all overrides a single player is currently affected by
  • is always sorted by BetterPlayerAudioOverride.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