Skip to content

VoiceOverrideTriggerZone

Guribo edited this page Jan 20, 2022 · 2 revisions

VoiceOverrideTriggerZone

Assets/Guribo/UdonBetterAudio/Runtime/Examples/VoiceOverrideTriggerZone.cs

Adds all players currently in contact with the attached trigger to a BetterPlayerAudioOverride.

Overview

The UdonSharpbehaviour VoiceOverrideDoor is a component which

  • can be used define level areas in which players are affected by a BetterPlayerAudioOverride
  • is entirely local (no synchronization required)
  • most reliable
  • requires colliders covering the entire area where the effects of the BetterPlayerAudioOverride should be present

Known issues

Note: the following bug is a special, rare situation!

  • Udon will not detect a player being inside a disabled trigger on the very first time it is enabled.
    • If it was enabled before there is no issue.
    • If the player is not inside it while it is enabled there is also no problem.
    • Should you have a situation like this, the simple solution is to enable, disable and re-enable it for the player to be detected reliably.
      Reported by FireTik