getParameterByName does not retrieve correct value when parameter is modified w/ command instruments

getParameterByName does not retrieve the correct value when the parameter has been modified through command instruments.

I have been experiencing this problem exclusively with the case of command instruments. As in, when modifying the parameter through C#, getParameterByName has been working as expected.

It is not that the command instruments are not working either, as I have checked.

Hi,

What FMOD Unity integration version are you using?

Just want to double check, are you using eventInstance.getParameterByName("YourParameterName", out float value) to retrieve the parameter value?

If that’s the case, would it be possible to try using eventInstance.getParameterByName("YourParameterName", out float value, out float finalValue) and retrieve the finalValue?

The first value is the explicit value you have assigned to the parameter using functions like Studio::EventInstance::setParameterByName.

The second parameterValue is the actual final value used during playback, considering all adjustments and modifications performed by FMOD’s internal processing and values passed in the public API. This will be the value assigned by the Command instrument.

For more information about this method’s parameter, please have a look at our docs here:
FMOD Engine | 6. Studio API Reference | Studio::EventInstance | Studio::EventInstance::getParameterByName