I’m new to FMOD - and I love it so far!
I know how to set a FMOD parameter of an event from Unity:
EventInstance.setParameterByName(parameterName, value);
But I wondered if it would be possible to fade the parameter to a new value (over a specified amount of time) instead of setting it abruptly?
A few thoughts:
-
Is it possible through the FMOD API? (I think this is the preferred solution…?)
-
I could lerp through values in Unity’s Update-method and call the setParameterByName-method every frame. I’m not too sold on this solution, as it might give uneven fades in long frames (e.g., Scene loading). Also, there would be a lot of Unity-to-FMOD-calls every second if I had a lot of fades going on.
-
I could set it up somehow in the FMOD studio (so a setParameterByName-call is faded-to, instead of set abruptly)?
Any advice is very welcome! I do appreciate any help you can provide