# ParamRef doesn't show local parameters in Unity

**URL:** <https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433>\
**Category:** Unity\
**Created:** [July 14, 2021, 2:28am UTC](https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433 "2021-07-14T02:28:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [July 14, 2021, 2:28am UTC](https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433/1 "2021-07-14T02:28:10Z")

</div>

I can’t see any of my local parameters in the Unity ParamRef browser. Is that by design? Is there any way to see their names from unity’s editor?

---

<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:** [July 14, 2021, 7:19am UTC](https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433/2 "2021-07-14T07:19:48Z")

</div>

Just to clarify- are you doing something like:

```auto
[FMODUnity.ParamRef]
public string myParam;

```

and asking why you can’t see local parameters? If so, the `FMODUnity.ParamRef` attribute is intended to be used on [global parameters](https://www.fmod.com/resources/documentation-unity?version=2.02&page=api.html#global-parameters). This does make sense as a limitation because if you could see local parameters globally, they would no longer be local. A good way to see which parameters are available on which events, and to audition them within the Unity Editor, is to use the [Event Browser](https://www.fmod.com/resources/documentation-unity?version=2.02&page=event-browser.html).

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [July 14, 2021, 8:13pm UTC](https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433/3 "2021-07-14T20:13:18Z")

</div>

Oh awesome! I wasn’t aware of the Event Browser. I’ll just use:  
EventManager.EventFromPath();

And then read the local parameters from there. Thank you!

---

<div class="post-metadata">

**Author:** ![g.hadji](https://avatars.discourse-cdn.com/v4/letter/g/b19c9b/32.png) [@g.hadji](https://qa.fmod.com/u/g.hadji)\
**Post date:** [January 18, 2022, 9:22am UTC](https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433/4 "2022-01-18T09:22:50Z")

</div>

Hi Jeff. So how can we create a refference to the the fmod local parameter to use in code if we can’t use [ParamRef] ?

---

<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 21, 2022, 4:56am UTC](https://qa.fmod.com/t/paramref-doesnt-show-local-parameters-in-unity/17433/5 "2022-01-21T04:56:54Z")

</div>

You can get a list of event-level parameters by calling `EventReference.GetEventDescription` on a Studio Event Emitter instance to get the underlying `EventDescription` object, and from there you can get a count of parameters using [`EventDescription.getParameterDescriptionCount`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptioncount), and iterate over them using [`EventDescription.getParameterDescriptionByIndex`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyindex) to build up a list of [`PARAMETER_DESCRIPTION`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-common.html#fmod_studio_parameter_description).  
From these parameter descriptions, you have access to their names, min-max values etc, which you can use to pass into [`EventInstance.setParameterByName`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-eventinstance.html#studio_eventinstance_setparameterbyname).
