Hi people,
When trying to call a parameter in an event I have a problem with the following lines:
FMOD.Studio.EventInstance CarMotor;
FMOD.Studio.ParameterInstance RPM; //It doesn't work (1)
void Awake()
{
CarMotor = FMODUnity.RuntimeManager.CreateInstance ("event:/Car Motor");
CarMotor.getParameter("RPM", out RPM);//It doesn't work (2)
}
Apparently, FMOD 2.0 uses other methods for that.
(1) Instead of ParameterInstance, the options offered are: PARAMETER_ID, PARAMETER_FLAGS, PARAMETER_TYPE, PARAMETER_DESCRIPTION.
(2) Instead of getParameter, I get âgetParameterByIDâ and âgetParameterByNameâ.
Please help.