# Trying to drive Fmod effects parameter with Unity variable

**URL:** https://qa.fmod.com/t/trying-to-drive-fmod-effects-parameter-with-unity-variable/23983
**Category:** Unity
**Tags:** unity
**Created:** [February 8, 2026, 9:30pm UTC](https://qa.fmod.com/t/trying-to-drive-fmod-effects-parameter-with-unity-variable/23983 "2026-02-08T21:30:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kdnguy18FMOD](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kdnguy18FMOD](https://qa.fmod.com/u/Kdnguy18FMOD)
#### Post date: [February 8, 2026, 9:30pm UTC](https://qa.fmod.com/t/trying-to-drive-fmod-effects-parameter-with-unity-variable/23983/1 "2026-02-08T21:30:47Z")

</div>

Trying to drive local Fmod parameter that automates Pitch Shifter in an Event with Unity variable, it plays the right sound from the event, but changing the float pitchBend doesn’t change pitch at all for me.

noteEvent = FMODUnity.RuntimeManager.CreateInstance(fullEventPath);  
noteEvent.set3DAttributes(RuntimeUtils.To3DAttributes(gameObject.transform));  
fmodEmitter.EventReference = EventReference.Find(fullEventPath);  
noteEvent.setParameterByName(“PitchBend”, pitchBend);  
noteEvent.start();  
noteEvent.release();  
Debug.Log($"Playing note with event ‘{fullEventPath}’ at pitchBend {pitchBend} ");  
FMOD.RESULT result = noteEvent.setParameterByName(“PitchBend”, pitchBend);

if (result != FMOD.RESULT.OK)  
{  
Debug.Log("Parameter not found: " + result);  
}  
FMOD.Studio.EventDescription desc;  
int paramCount;

noteEvent.getDescription(out desc);  
desc.getParameterDescriptionCount(out paramCount);

Debug.Log("Parameter count: " + paramCount);

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7d0671d79df2b2db8c7098b18d37c4d2799fd3fa.png)

here’s what the console logs say:

Playing note with event ‘event:/Pianos/GrandPiano/WhiteKeys/Key\_ C4’ at pitchBend 3.12

Parameter not found: ERR\_INVALID\_PARAM

Parameter count:1

---

<div class="post-metadata">

### Author: ![Kdnguy18FMOD](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kdnguy18FMOD](https://qa.fmod.com/u/Kdnguy18FMOD)
#### Post date: [February 8, 2026, 10:36pm UTC](https://qa.fmod.com/t/trying-to-drive-fmod-effects-parameter-with-unity-variable/23983/2 "2026-02-08T22:36:18Z")

</div>

I found the problem, I forgot to build my bank and made sure it’s local parameter

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [February 9, 2026, 5:22am UTC](https://qa.fmod.com/t/trying-to-drive-fmod-effects-parameter-with-unity-variable/23983/3 "2026-02-09T05:22:59Z")

</div>

Thank you for sharing the solution
