Skip to content

Example Prefabs

Guribo edited this page Jul 11, 2026 · 4 revisions

Example Prefabs

All example prefabs are located at Packages/tlp.udonvoiceutils/Runtime/Prefabs/Examples/.

Voice Override Zones

Prefab Purpose Components Details
VoiceOverrideTriggerZone Zone-based voice override VoiceOverrideTriggerZone, PlayerAudioOverride, trigger collider Players inside the trigger are affected by the override. Local, no sync needed.

See VoiceOverrideTriggerZone for full details.

Room System

Prefab Purpose Components Details
VoiceOverrideRoom Synchronized room with enter/exit VoiceOverrideRoom, PlayerAudioOverride Tracks players in/out, syncs across network. Supports doors and buttons for entry/exit.
VoiceOverrideDoor Door-based room enter/exit Script: VoiceOverrideDoor Configurable enter/exit direction. Connects to a VoiceOverrideRoom. Requires a GameObject with a BoxCollider (trigger). No prefab — attach script manually.
VoiceOverrideRoomEnterButton Button-based room enter Script: VoiceOverrideRoomEnterButton Teleports player into room on interact. Optional enter location. No prefab — attach script manually.
VoiceOverrideRoomExitButton Button-based room exit Script: VoiceOverrideRoomExitButton Teleports player out of room on interact. Optional exit location. No prefab — attach script manually.

See VoiceOverrideRoom for full details.

Microphones

Prefab Purpose Components Details
PickupMicrophone Pickupable mic PickupMicrophone, VRC_Pickup, PlayerAudioOverride, MicModel Extends voice range while held. Synchronized across players.
InteractMicrophone (Hold Use to talk) Pickup mic — hold Use while holding to talk InteractMicActivation, PlayerAudioOverride Hold Use button to activate.
InteractMicrophone (Toggle with Use) Toggle mic InteractMicActivation, PlayerAudioOverride Press Use to toggle on/off.
InteractMicrophone (Toggle with Use + keeps ON state on drop) Persistent toggle mic InteractMicActivation, PlayerAudioOverride Toggle mic that stays on when dropped.

See PickupMicrophone for microphone architecture (MVC pattern).

World Audio

Prefab Purpose Components Details
AudioSource_Controlled_by_WorldAudioController Managed AudioSource example OccludedEmitter, AudioSource, AudioSourceStateController, ReverbController Demonstrates WorldAudio-managed audio with reverb and culling.
Bathroom Reverb environment Environment colliders + AudioObstacles Small room with reverb-enabled surfaces.
ConcertHall Large reverb environment Environment colliders + AudioObstacles Large space with concert hall reverb.
Pool Water reverb environment Environment colliders + AudioObstacles Pool area with water-appropriate reverb.

See WorldAudio-Subsystem for how emitter management works.

Other

Prefab Purpose Components Details
OpenDoorExample Door interaction Door collider + interactable Example of a door that opens/closes.

Core Prefabs

Located at Packages/tlp.udonvoiceutils/Runtime/Prefabs/Core/:

Prefab Purpose Details
TLP_PlayerAudioController Core audio controller Required. Manages all player audio. Includes LocalConfiguration and DefaultConfiguration.
TLP_PlayerAudioMenu Settings menu UI Optional. Adds in-world settings menu for players.
TLP_WorldAudioController Emitter update controller Optional. Required for WorldAudio-managed AudioSources.

See Minimal Scene Setup for how to add these to your scene.

See Also

Clone this wiki locally