How to set instance parameters before starting

Is this even possible? I have an event with various parameters which are set according to the state of the game. I understand I can:

instance.start();
instance.setParameterByName(“Parameter Name”, value);

and this will work. I just wonder if I can set the parameter before starting the instance

Hi,

Yes, as long as the instance is created (FMODUnity.RuntimeManager.CreateInstance()) before trying to access it/assign its parameters. I would also recommend checking most FMOD functions with FMOD.RESULT as it can provide useful information for debugging purposes: FMOD API | Core API Reference - Common.

Hope this helps!

Sorry it was the end of a long day and I pasted my parameter change above the instance creation line… Thanks for your help!

1 Like