Search Unity

Audio How to change SFX Reverb 'Wet' value from script?

Discussion in 'Audio & Video' started by SpookyCat, Dec 28, 2018.

  1. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,761
    I need to have reverb applied to an object in my game that has a dozen or so audiosources applied to it and in some cases multiple audiosources on objects, I can't use reverb zones as the listener is not in the reverb zone just the object making the sound moving through say a tunnel. I have the sounds going to an AudioMixer group and I have a SFX Reverb on that group, I have turned on the 'Wet' option so I can fade the reverb in and out but I can't find any info on how to change the wet value from script, or come to that any of the SFX Reverb values, there seems to be zero docs on the scripting site for this. Is there any info out there on how to change the values and what the values are actually called in their classes?
     
  2. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,761
    Finally found some info, had to expose the param and use SetFloat, seriously lacking docs though for the audio side of things.