# How to access a parameter by Guid?

**URL:** https://qa.fmod.com/t/how-to-access-a-parameter-by-guid/15626
**Category:** Unity
**Created:** [April 10, 2020, 10:37am UTC](https://qa.fmod.com/t/how-to-access-a-parameter-by-guid/15626 "2020-04-10T10:37:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![j4nw](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/j4nw/32/918_2.png) [@j4nw](https://qa.fmod.com/u/j4nw)
#### Post date: [April 10, 2020, 10:37am UTC](https://qa.fmod.com/t/how-to-access-a-parameter-by-guid/15626/1 "2020-04-10T10:37:52Z")

</div>

Hello,

I’ve been using the Guids generated from Studio to have a layer of indirection over the Studio project structure.

I can access events just fine:

`FMODUnity.RuntimeManager.PlayOneShot(someSfxGuid);`

I can also access VCAs just fine, though `GetVCA` only accepts a Guid string, formatted with the braces, and not an actual Guid struct:

`FMODUnity.RuntimeManager.GetVCA(someVcaGuid.ToString("B"));`

However, this doesn’t work:

`FMODUnity.RuntimeManager.StudioSystem.setParameterByName(myParameterGuid.ToString("B"), 1);`

There is a `setParameterByID` function which accepts a `PARAMETER_ID` struct, but that seems to be a different thing entirely (half the memory size of a Guid), which I’m not even sure where/how to look up.

By the way, `setParameterByName("SomeName")` does seem to work when I look up and print out the value from code, but it doesn’t change in the Studio over Live Update.

Also there doesn’t seem to be any generated logging for any of this.

---

<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 20, 2020, 3:57am UTC](https://qa.fmod.com/t/how-to-access-a-parameter-by-guid/15626/2 "2020-04-20T03:57:30Z")

</div>

Are you checking the returned result of the FMOD functions?  
If one of the calls isn’t being executed this will help.

Parameter ID is a replacement for indicies (ie. `EventInstance::getParameterValueByIndex`) and requires less recourses than guids to use at runtime.  
[https://fmod.com/resources/documentation-api?version=2.1&page=welcome-whats-new-200.html#new-parameter-api](https://fmod.com/resources/documentation-api?version=2.1&page=welcome-whats-new-200.html#new-parameter-api)

---

<div class="post-metadata">

### Author: ![kamyk49](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/kamyk49/32/4567_2.png) [@kamyk49](https://qa.fmod.com/u/kamyk49)
#### Post date: [February 1, 2023, 7:55pm UTC](https://qa.fmod.com/t/how-to-access-a-parameter-by-guid/15626/3 "2023-02-01T19:55:05Z")

</div>

The problem is there’s no way to get PARAMETER\_ID using GUID. There’s only getParameterDescriptionByName and getParameterDescriptionByID. Even when using getParameterDescriptionList, descriptions have no GUIDs so there’s no way to get Parameter using GUID.

---

<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: [February 7, 2023, 10:46pm UTC](https://qa.fmod.com/t/how-to-access-a-parameter-by-guid/15626/4 "2023-02-07T22:46:03Z")

</div>

It looks like this was answered in another thread.

> [@GUIDs and parameters GUIDs](https://qa.fmod.com/t/guids-and-parameters-guids/16624/7):
>
> Hi, The lack of any easy way to get a Parameter ID from a GUID is frustrating, so thanks for pointing it out - I’ve added it to our internal feature/improvement tracker. That said, here’s an example C# function that does a Parameter GUID to ID lookup: FMOD.Studio.PARAMETER\_ID ParamGUIDToID(FMOD.GUID guid) { FMOD.Studio.PARAMETER\_ID paramID = new FMOD.Studio.PARAMETER\_ID(); studioSystem.lookupPath(guid, out string path); studioSystem.getBankList(out FMOD.Studio.Bank[] banks); fo…
