Skip to content

IgnoredPlayers

Guribo edited this page Jul 11, 2026 · 4 revisions

IgnoredPlayers

Packages/tlp.udonvoiceutils/Runtime/Core/PlayerAudio/IgnoredPlayers.cs

Players excluded from audio processing.

Overview

Tracks player IDs that should not be affected by the audio controller. Ignored players receive default VRChat audio settings (no overrides, no occlusion, no directionality).

Public API

Method Returns Description
Add(VRCPlayerApi) bool Add player to ignore list
Remove(VRCPlayerApi) bool Remove player from ignore list
Contains(int playerId) bool Check if player is ignored

Usage

Via PlayerAudioController:

controller.IgnorePlayer(player);    // add to ignore list
controller.UnIgnorePlayer(player);  // remove from ignore list

Behavior

  • Invalid players are automatically cleaned up when the ignore list is modified
  • Ignored players are skipped during the time-sliced update loop
  • Effects (occlusion, directionality) are reverted when a player is first ignored

See Also

Clone this wiki locally