Answered
0
0

Hello,

I was just wondering if there is a way to get parameter value?

Thanks

  • You must to post comments
Best Answer
0
0

Yes it just depends on how you are using the event you want to access.
If you are using the FMODStudioEventEmitter script, you will need to access the instance it contains:

StudioEventEmitter.instance.getParameterValue(stringName, out value1, out finalValue);

Or if you have created your own event in your own script:

FMOD.Studio.EventInstance.getParameterValue(stringName, out value1, out finalValue);
https://www.fmod.org/docs/content/generated/FMOD_Studio_EventInstance_GetParameterValue.html

Also you could store a reference to the parameter and get/set the value from that:

StudioEventEmitter.instance.getParameter(stringName, out FMOD.Studio.ParameterInstance);
or:
FMOD.Studio.EventInstance.getParameter(stringName, out FMOD.Studio.ParameterInstance);

https://www.fmod.org/docs/content/generated/studio_api_ParameterInstance.html

  • Vlad S

    Thank you very much Cameron, it works!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.