Accessing parameters in nested events


I want to know if it is possible to set a parameter of a event inside another event.
Just to make myself clear: I have an Event called Event1, inside that event there are 3 events or nested events SubEvent1 2 and 3, Event1 also has 3 parameters for the volume. Each of those sub events has four multisounds and 4 parameters that define which multisound to play.

Now in unity I select the Event1 event on the StudioEventEmitter component and on the parameters section only the first 3 parameters appear and not the four parameters for the multisounds. So I assumed this is something I could do through code but I have not been able to find a way to set the parameters in the nested events unless I build the bank with the parameters I want set to 1.

I don´t know if this is because nested events are not used this way or I have to do something else in the code to make it work.

Currently my code is very basic I just have my StudioEventEmitter.SetParameters(“Parameter1”, 1); I tried to set all the parameters in the Events and subevents like that having my Emitter with the main event set.

If anyone could point me in the right direction it will be much appreciated.

Okay I found the answer in the forums so I´ll just put a link to it here for anyone interested.

Basically I created four extra parameters in the main event one for each multisound and then select the nested event in the main event, in each parameter I automated the multisound parameters referenced in the nested event.

1 Like