I am trying to work out how to add some of the audio effects to an AudioSource object with C#, but cannot find any obvious method to do this. Can anyone help?
Thanks in advance,
Dave
I am trying to work out how to add some of the audio effects to an AudioSource object with C#, but cannot find any obvious method to do this. Can anyone help?
Thanks in advance,
Dave
It should be as simple as:
suchAndSuch.AddComponent<AudioReverbFilter>();
They're technically not added to the AudioSource but are actually derived from Behaviour (Which derives from Component) and can be added regardless of whether the object has an AudioSource.