How to set the parameters from event sound modules?


(Filipe Silvestrim) #1

Hello guys,

How can I set the parameter from event sound modules? I did not find any (API) way of getting this “nested” event (of mine accessible event) in order to set the parameter of it.

What’s the standard way of setting it? And is it already exposed to the Unity Wrapper?

Thanks in advance.


(Nicholas Wilcox) #2

Add a parameter with the same name to the containing event, and then any setParameter calls pass the value down to the nested event.

You can think about nested event parameters as being private by default, and adding a parameter with the same name as making it public.