Hi,
When my game boots, I have a StudioBankLoader components that loads my banks (including Master and Master.strings). I have a coroutine that checks if all the banks were loaded, then I set a global parameter from a StudioGlobalParameterTrigger like this:
[SerializeField] private StudioGlobalParameterTrigger _musicVolumeParameter;
private IEnumerator SetPlayerPrefsOptionsCoroutine(float intensity)
{
// We wait so all the banks are loaded
while (!RuntimeManager.HaveAllBanksLoaded)
{
yield return null;
}
_musicVolumeParameter.Value = intensity;
_musicVolumeParameter.TriggerParameters();
}
But I get this error:
[FMOD] StudioGlobalParameterTrigger failed to set parameter MusicVolume_Fader : result = ERR_EVENT_NOTFOUND
One thing I noticed is that if I load the Master bank at the RuntimeManager initialization, it works. How? Why it doesn’t work even though I check if HaveAllBanksLoaded before using the global parameter??
Can someone help me understand this?