# How to get and display FMOD Studio parameter names in Unity UI?

**URL:** https://qa.fmod.com/t/how-to-get-and-display-fmod-studio-parameter-names-in-unity-ui/19106
**Category:** Unity
**Created:** [August 8, 2022, 10:44pm UTC](https://qa.fmod.com/t/how-to-get-and-display-fmod-studio-parameter-names-in-unity-ui/19106 "2022-08-08T22:44:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [August 8, 2022, 10:44pm UTC](https://qa.fmod.com/t/how-to-get-and-display-fmod-studio-parameter-names-in-unity-ui/19106/1 "2022-08-08T22:44:18Z")

</div>

I’ve gleaned various answers leading up to this, for which I’m grateful. But I haven’t quite found a precedent for this, so I’d appreciate any insight.

Say I have multiple events with parameters setup whose names I want to appear in the in-game UI, as sliders with corresponding text. This is the use case scenario:

- Various FMOD events (containing Programmer Instruments or other instruments playing looped sounds) have 1-4 parameters mapped.
- There is a way in the game to play one of those events, and alongside it, show the 1-4 parameters with sliders/knobs, and the parameter names.
- It will only show UI controls for active parameters. So if an event has 2 parameters named “Volume” and “Intensity”, it only shows 2 UI sliders/knobs with those exact label names, "Volume and “Intensity”.
- So basically, this particular control panel adapts to match whatever the active event — and its parameters — have available.
- Assume “Parameter scope” = “Local”

How would I do this with FMOD and Unity?

I see this section which is presumably related: [https://fmod.com/docs/2.00/api/studio-api-eventinstance.html#studio\_eventinstance\_getparameterbyname](https://fmod.com/docs/2.00/api/studio-api-eventinstance.html#studio_eventinstance_getparameterbyname)

---

<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: [August 15, 2022, 1:33am UTC](https://qa.fmod.com/t/how-to-get-and-display-fmod-studio-parameter-names-in-unity-ui/19106/2 "2022-08-15T01:33:52Z")

</div>

You can use [`EventDescription::getParameterDescriptionCount`](https://fmod.com/docs/2.00/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptioncount) to get the number of parameters on an event and use [`EventDescription::getParameterDescriptionByIndex`](https://fmod.com/docs/2.00/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyindex) in a for loop to enumerate the parameters. That will give you a [`FMOD_STUDIO_PARAMETER_DESCRIPTION`](https://fmod.com/docs/2.00/api/studio-api-common.html#fmod_studio_parameter_description) which has fields for the parameter’s name, min max values etc.

---

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [August 15, 2022, 4:25pm UTC](https://qa.fmod.com/t/how-to-get-and-display-fmod-studio-parameter-names-in-unity-ui/19106/3 "2022-08-15T16:25:55Z")

</div>

Thanks for clarifying that, @jeff_fmod! Much appreciated.
