# Get parameter value inside unity

**URL:** https://qa.fmod.com/t/get-parameter-value-inside-unity/13676
**Category:** Unity
**Created:** [January 29, 2018, 5:45pm UTC](https://qa.fmod.com/t/get-parameter-value-inside-unity/13676 "2018-01-29T17:45:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wearywitness](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@wearywitness](https://qa.fmod.com/u/wearywitness)
#### Post date: [January 29, 2018, 5:45pm UTC](https://qa.fmod.com/t/get-parameter-value-inside-unity/13676/1 "2018-01-29T17:45:28Z")

</div>

Hi,

I’m new to fmod but fairly experienced in Unity. A simple question, but getting my head around it all the time.

I have a StudioEventEmitter called ‘boatSoundController’ and a parameter called ‘boat\_movement’. I need to constantly receive values of ‘boat\_movement’ so that I can pass it on to other floats in Unity.  
Is there a way I can see the parameter value during runtime? I can see the initial parameter value in the event, but not it’s constantly updated value!

Any help would be much appreciated. 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: [January 30, 2018, 4:07am UTC](https://qa.fmod.com/t/get-parameter-value-inside-unity/13676/2 "2018-01-30T04:07:55Z")

</div>

You would have to do this in your own script.

You will want to get the EventInstance from the StudioEventEmitter.

Or you can create and control an Event from your own script, where you would also have direct access to the Instance.  
Here is an example of how you can use FMOD in a script:  
[https://fmod.com/resources/documentation-api?page=content/generated/engine\_new\_unity/script\_example\_basic.html#/](https://fmod.com/resources/documentation-api?page=content/generated/engine_new_unity/script_example_basic.html#/)

Once you have the EventInstance you can call EventInstance::getParameterValue whenever you need the current value.  
[https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventInstance\_GetParameterValue.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventInstance_GetParameterValue.html#/)

---

<div class="post-metadata">

### Author: ![wearywitness](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@wearywitness](https://qa.fmod.com/u/wearywitness)
#### Post date: [January 31, 2018, 9:16am UTC](https://qa.fmod.com/t/get-parameter-value-inside-unity/13676/3 "2018-01-31T09:16:45Z")

</div>

Thank you, it worked out very well 🙂

---

<div class="post-metadata">

### Author: ![florian13](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/florian13/32/597_2.png) [@florian13](https://qa.fmod.com/u/florian13)
#### Post date: [April 9, 2019, 11:00pm UTC](https://qa.fmod.com/t/get-parameter-value-inside-unity/13676/4 "2019-04-09T23:00:06Z")

</div>

This feels very complicated. I’m trying to simply tween a volume and digging into this things feels like a waste of time. Why not simply have access to a GetParameter method?

---

<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: [April 15, 2019, 12:03am UTC](https://qa.fmod.com/t/get-parameter-value-inside-unity/13676/5 "2019-04-15T00:03:23Z")

</div>

You can access the EventInstance of a StudioEventEmitter and call getParameter() directly on that.  
We just haven’t had any requests for that sort of helper function previously.
