Trying to use different events in a single emitter does not works

Hello and good day.

I’m trying to use a single event emitter to manage diferent events, but when I do it, only the first assigned event keeps playing (when it’s invoked using the Play at the moment and later on), this is the way I do it:

public StudioEventEmitter emitter;
public EventReference eventA;
public EventReference eventB;

public void PlayEventBy(bool isB)
	if (!isB)
		emitter.EventReference = eventA;
		emitter.EventReference = eventB;


My quetion here is: How can I solve this or it’s not possible?, I know I can use multiple components to manage that (actually I have to do it), but I want to know if the other option it’s allowed or not, thanks for you attention.


What version of FMOD are you using?

This is possible by commenting out a few lines in the Studio Event Emitter, but this isn’t how the emitters were intended to be used. Could you elaborate and the behavior you are trying to achieve and maybe we could find an alternative solution?

The lines that need to be commented out are 196, 197, 199, 227, 228, and 230 in StudioEventEmitter.cs. These lines are checking if there is already a valid Event Description and Event Instance attached to the emitter.

Hope this helps.

Hi, thanks for the reply.

Well, I managed in a different way (checking the documentation), fortunately I found a very good solution for my case, once again, thanks and have a nice day.

1 Like