# Global Parameter not setting

**URL:** <https://qa.fmod.com/t/global-parameter-not-setting/18209>\
**Category:** Unity\
**Tags:** unity\
**Created:** [January 11, 2022, 7:10pm UTC](https://qa.fmod.com/t/global-parameter-not-setting/18209 "2022-01-11T19:10:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaceowlpro](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@spaceowlpro](https://qa.fmod.com/u/spaceowlpro)\
**Post date:** [January 11, 2022, 7:11pm UTC](https://qa.fmod.com/t/global-parameter-not-setting/18209/1 "2022-01-11T19:11:00Z")

</div>

I’m currently unable to set a Global Parameter in Unity. When I use the following code, I always get a return of 0 for newPanning, and the sound is audibly unaffected.

> FMODUnity.RuntimeManager.StudioSystem.setParameterByName(“ChoiceLocation”, .2f);  
> FMODUnity.RuntimeManager.StudioSystem.getParameterByName(“ChoiceLocation”, out float newPanning);  
> Debug.Log("Setting Global Choice Location Param to: " + newPanning);

The global parameter is set up as Global and isn’t read only, nor is it being effected anywhere else in the game.

I’m using FMOD Studio version 2.01.00 and Unity version 2020.2.1f1

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [January 20, 2022, 12:36am UTC](https://qa.fmod.com/t/global-parameter-not-setting/18209/2 "2022-01-20T00:36:25Z")

</div>

I have not been able to reproduce this issue. What is the value of the `FMOD_RESULT` returned from the `setParameterByName` call?
