# Get parameter value?

**URL:** https://qa.fmod.com/t/get-parameter-value/13447
**Category:** Unity
**Created:** [September 19, 2017, 10:40am UTC](https://qa.fmod.com/t/get-parameter-value/13447 "2017-09-19T10:40:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![uberwleiss](https://avatars.discourse-cdn.com/v4/letter/u/c68b51/32.png) [@uberwleiss](https://qa.fmod.com/u/uberwleiss)
#### Post date: [September 19, 2017, 10:40am UTC](https://qa.fmod.com/t/get-parameter-value/13447/1 "2017-09-19T10:40:30Z")

</div>

Hello,

I was just wondering if there is a way to get parameter value?

Thanks

---

<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: [September 21, 2017, 4:46am UTC](https://qa.fmod.com/t/get-parameter-value/13447/2 "2017-09-21T04:46:47Z")

</div>

Yes it just depends on how you are using the event you want to access.  
If you are using the FMODStudioEventEmitter script, you will need to access the instance it contains:

StudioEventEmitter.instance.getParameterValue(stringName, out value1, out finalValue);

Or if you have created your own event in your own script:

FMOD.Studio.EventInstance.getParameterValue(stringName, out value1, out finalValue);  
[https://www.fmod.org/docs/content/generated/FMOD\_Studio\_EventInstance\_GetParameterValue.html](https://www.fmod.org/docs/content/generated/FMOD_Studio_EventInstance_GetParameterValue.html)

Also you could store a reference to the parameter and get/set the value from that:

StudioEventEmitter.instance.getParameter(stringName, out FMOD.Studio.ParameterInstance);  
or:  
FMOD.Studio.EventInstance.getParameter(stringName, out FMOD.Studio.ParameterInstance);

[https://www.fmod.org/docs/content/generated/studio\_api\_ParameterInstance.html](https://www.fmod.org/docs/content/generated/studio_api_ParameterInstance.html)

---

<div class="post-metadata">

### Author: ![uberwleiss](https://avatars.discourse-cdn.com/v4/letter/u/c68b51/32.png) [@uberwleiss](https://qa.fmod.com/u/uberwleiss)
#### Post date: [September 21, 2017, 5:20pm UTC](https://qa.fmod.com/t/get-parameter-value/13447/3 "2017-09-21T17:20:03Z")

</div>

> [@](#):
>
> Yes it just depends on how you are using the event you want to access.  
> If you are using the FMODStudioEventEmitter script, you will need to access the instance it contains:
> 
> StudioEventEmitter.instance.getParameterValue(stringName, out value1, out finalValue);
> 
> Or if you have created your own event in your own script:
> 
> FMOD.Studio.EventInstance.getParameterValue(stringName, out value1, out finalValue);  
> [https://www.fmod.org/docs/content/generated/FMOD\_Studio\_EventInstance\_GetParameterValue.html](https://www.fmod.org/docs/content/generated/FMOD_Studio_EventInstance_GetParameterValue.html)
> 
> Also you could store a reference to the parameter and get/set the value from that:
> 
> StudioEventEmitter.instance.getParameter(stringName, out FMOD.Studio.ParameterInstance);  
> or:  
> FMOD.Studio.EventInstance.getParameter(stringName, out FMOD.Studio.ParameterInstance);
> 
> [https://www.fmod.org/docs/content/generated/studio\_api\_ParameterInstance.html](https://www.fmod.org/docs/content/generated/studio_api_ParameterInstance.html)

Thank you very much Cameron, it works!
