# How to Read Current Global Parameter Value?

**URL:** <https://qa.fmod.com/t/how-to-read-current-global-parameter-value/16064>\
**Category:** Unity\
**Tags:** unity\
**Created:** [August 10, 2020, 12:18am UTC](https://qa.fmod.com/t/how-to-read-current-global-parameter-value/16064 "2020-08-10T00:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![burnum](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@burnum](https://qa.fmod.com/u/burnum)\
**Post date:** [August 10, 2020, 12:18am UTC](https://qa.fmod.com/t/how-to-read-current-global-parameter-value/16064/1 "2020-08-10T00:18:13Z")

</div>

I would like to use a Command Instrument to set a Global Parameter value at a specific point on the timeline, and be able to get the parameter value in my Unity script. My current code doesn’t return the value set by Command Instruments.

`FMODUnity.RuntimeManager.StudioSystem.getParameterByName(paramName, out paramVal);`

Set Global Parameter Code:

`FMODUnity.RuntimeManager.StudioSystem.setParameterByName(paramName, paramValue);`

Setting a parameter works, and getParameterByName will return the value updated by setParameterByName, but it won’t return a value set by a Command Instrument.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [August 14, 2020, 12:47am UTC](https://qa.fmod.com/t/how-to-read-current-global-parameter-value/16064/2 "2020-08-14T00:47:27Z")

</div>

Using [Studio::System::getParameterByName](https://www.fmod.com/resources/documentation-api?version=2.1&page=studio-api-system.html#studio_system_getparameterbyname), you have the option of also getting the ‘finalvalue’ which is the combined parameter value after it has been processed.
