Hi there!
I’m setting this parameters and all is going good, except that I’m having the following error:
[FMOD] EventInstance::setParameterByName(2261024, AngularVelocityHinge, 0, false) returned ERR_INVALID_HANDLE for STUDIO_EVENTINSTANCE (0x228020).
If I understand well, that error appears when an event instance is invalid and you try to do something with it, but as you can see I’m validating first. The thing is that the function has being executed in an update (monobehaviour script in unity) to get those parameters values in real time. How could avoid that error? My FMOD version is 2.03.07
1 Like
Hi,
Thank you for sharing the code, everything looks good there. Unfortunately, I was not able to reproduce the issue.
Would it be possible share the Player Log

If you add:
FMOD_RESULT result = m_doorHingeInstance.setParameterByName();
if (result != FMOD_OK)
// Log the result
We can confirm which setParemeterByName()
function specifically is causing the error.
Hi there!
Sorry but I hadn’t any log by using that logic, even player logs didn’t show anything. Instead I solve the error by using a flag, avoiding to have changes in those parameters while the event is stopping and releasing.
Thanks!
1 Like
Thanks for sharing the solution