How do I change the settings in the AudioReverbZone component using C#?

I am working in C#, and new to this language. I looked at the scripting reference, but it was no help.

I have an AudioReverbZone component attached to my First Person Controller.

I want to change the roomLF value of this AudioReverbZone based on the position of the player.

QUESTION:

How do I access the AudioReverbZone, and how do I change its settings?

You will definitely want this: http://qlcomp.com/?page_id=61

Thanks, but this is is an old question :] I've already created software similar to what the link provides (: I've for example made filters using the AudioOnFilterRead() method, which adjust volume/spectrum based on the relative position to a player && environment. Audio is a lot of fun!

1 Answer

1

GameObject reverbObject;

reverbObject.GetComponent< AudioReverbZone >().roomLF = anInteger;

Thank you! :] That's exactly what I needed! (: