# Fade FMOD parameters from Unity

**URL:** <https://qa.fmod.com/t/fade-fmod-parameters-from-unity/18277>\
**Category:** Unity\
**Tags:** unity\
**Created:** [January 26, 2022, 9:32am UTC](https://qa.fmod.com/t/fade-fmod-parameters-from-unity/18277 "2022-01-26T09:32:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gizmo1](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@gizmo1](https://qa.fmod.com/u/gizmo1)\
**Post date:** [January 26, 2022, 9:32am UTC](https://qa.fmod.com/t/fade-fmod-parameters-from-unity/18277/1 "2022-01-26T09:32:11Z")

</div>

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:

1. Is it possible through the FMOD API? (I think this is the preferred solution…?)

2. 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.

3. 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 🙂

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 26, 2022, 10:54am UTC](https://qa.fmod.com/t/fade-fmod-parameters-from-unity/18277/2 "2022-01-26T10:54:24Z")

</div>

Have you checked parameter “seek speed”? This seems to be what you’re looking for.

---

<div class="post-metadata">

**Author:** ![gizmo1](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@gizmo1](https://qa.fmod.com/u/gizmo1)\
**Post date:** [January 27, 2022, 5:07pm UTC](https://qa.fmod.com/t/fade-fmod-parameters-from-unity/18277/3 "2022-01-27T17:07:40Z")

</div>

Thanks! “Seek speed” seems awesome! 🙂

Only thing I’m wondering is: I use the same parameter on different events - can the Seek speed be set individually on each of those events? (From what I just tried, it seems to behave globally…)

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 27, 2022, 6:24pm UTC](https://qa.fmod.com/t/fade-fmod-parameters-from-unity/18277/4 "2022-01-27T18:24:20Z")

</div>

No you can’t. You need to duplicate the parameter to achieve that. If you want only one unique parameter exposed for the game code, you could automate children parameters (those with the different seek speed) with the parent parameter.
