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.