Find parameter index for using setParameterValueByIndex(int index, float value)


I am using Unity and would like to access fmod parameters by index instead of strings (for improved performance). I know there is a function setParameterValueByIndex, but I can’t figure out how to get the index of a parameter.


Use Studio::EventDescription::getParameterCount and Studio::EventDescription::getParameterByIndex.

1 Like

So would index 1 be the first parameter, 2 the 2nd, etc?

No, use getParameterByIndex() to look at the name to find the parameter you’re looking for.

Ah, thank you! I got it working using this information. I used getParamaterByIndex and then used to match name to id. Then stored id in list so I can reference it whenever I need it.