llealloo / audiolink

Audio reactive prefabs for VRChat
Other
354 stars 40 forks source link

Change Audiosource at runtime #185

Closed SCAbruh closed 2 years ago

SCAbruh commented 2 years ago

Hello, I've never created a world before so pardon me if this question is stupid: Is there any way to change the AudioSource used by Audiolink at runtime?

pema99 commented 2 years ago

https://github.com/llealloo/vrc-udon-audio-link/blob/master/AudioLink/Scripts/AudioLink.cs#L34

The variable controlling the audio source used is public. You should be able to set it from your own script at runtime.