# How to get GLOBAL Parameter IDs (not GUIDs) in Unity

**URL:** https://qa.fmod.com/t/how-to-get-global-parameter-ids-not-guids-in-unity/20685
**Category:** Unity
**Created:** [September 21, 2023, 3:54pm UTC](https://qa.fmod.com/t/how-to-get-global-parameter-ids-not-guids-in-unity/20685 "2023-09-21T15:54:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![brownadm](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@brownadm](https://qa.fmod.com/u/brownadm)
#### Post date: [September 21, 2023, 3:54pm UTC](https://qa.fmod.com/t/how-to-get-global-parameter-ids-not-guids-in-unity/20685/1 "2023-09-21T15:54:39Z")

</div>

Hello,

Does anyone know how to get Global Parameter IDs in Unity (C# Scripts)? All of the info I’ve seen on this topic refers to instances where the parameters are local. Even then, a lot of the old forum posts about this topic use outdated code, and it’d be good to know what the current solution is. I’m currently using Unity 2021.1.12f1 and FMOD Studio 2.02.07. I suspect the FMODUnity plugin is also 2.02.07. I’ve tried an upgrade of it to the current edition, but it doesn’t change anything.

Thanks!

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [September 22, 2023, 2:05am UTC](https://qa.fmod.com/t/how-to-get-global-parameter-ids-not-guids-in-unity/20685/2 "2023-09-22T02:05:11Z")

</div>

Hi,

You can get a parameter’s ID from its `FMOD_STUDIO_PARAMETER_DESCRIPTION` ([FMOD Engine | Studio API Reference - FMOD\_STUDIO\_PARAMETER\_DESCRIPTION](https://fmod.com/docs/2.02/api/studio-api-common.html#fmod_studio_parameter_description).

To get the description you can use

```auto
FMODUnity.RuntimeManager.StudioSystem.getParameterDescriptionByName("ParamName", out FMOD.Studio.PARAMETER_DESCRIPTION desc);

```

Let me know if this is what you are looking for.

---

<div class="post-metadata">

### Author: ![brownadm](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@brownadm](https://qa.fmod.com/u/brownadm)
#### Post date: [September 22, 2023, 5:13pm UTC](https://qa.fmod.com/t/how-to-get-global-parameter-ids-not-guids-in-unity/20685/3 "2023-09-22T17:13:12Z")

</div>

Hi, @Connor_FMOD. Thanks for the response. Wouldn’t this code take an Event as an argument? All I return in the console when using this code is:

FMOD.Studio.PARAMETER\_ID  
UnityEngine.Debug:Log (object)  
MusicManagerNEW:Awake () (at Assets/Scripts/MusicManagerNEW.cs:42)

The lines of code being used are:

```auto
FMODUnity.RuntimeManager.StudioSystem.getParameterDescriptionByName("MusicType", out FMOD.Studio.PARAMETER_DESCRIPTION desc);
Debug.Log(desc.id);

```

I just need to see what that ID is. While we’re on the subject of id, will the ID of a parameter remain the same from the moment it was created in FMOD Studio, or are there circumstances that will cause a parameter ID to change?

EDIT: It seems I can return other information about the parameter, just not the ID!

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [September 25, 2023, 12:14am UTC](https://qa.fmod.com/t/how-to-get-global-parameter-ids-not-guids-in-unity/20685/4 "2023-09-25T00:14:41Z")

</div>

Hi,

The ID is broken into two values `data1` and `data2` so I would suggest trying

```auto
Debug.Log(desc.id.data1 + desc.id.data2); 

```

Yes, the ID should remain the same from the creation of the event.

> [@brownadm](#):
>
> It seems I can return other information about the parameter, just not the ID!

Correct, the parameter description includes a lot of useful information.
