SetEvent clearing automatedparametercache

Hello,

We recently upgraded our project from Unreal 5.5.4 to 5.7 alongside upgrading FMOD Unreal integration from 2.03.11 to 2.03.14.

In our project we use SetEvent calls on the FMODAudioComponent to change between events we want to play. After upgrading this method became broken. I have it locally fixed but perhaps there is more wrong or something I misunderstand?

SetEvent clears the newly added AutomatedParameterCache but does not repopulate causing the occlusion to break on PlayInternal. That said
adding a call CacheDefaultParameterValues() after the event is updated is not sufficient as GetParameterDescriptions is set for Editor
and returns a nullptr in a non-editor build. I changed this to FMOD::Studio::EventDescription *EventDesc = IFMODStudioModule::Get().GetEventDescription(this, EFMODSystemContext::Max);

Thank you

1 Like