Firelight Technologies FMOD Studio API
Studio::EventInstance::getParameter
Retrieves a parameter instance by name.
C++ Syntax
FMOD_RESULT Studio::EventInstance::getParameter(
const char *name,
Studio::ParameterInstance **parameter
);
C Syntax
FMOD_RESULT FMOD_Studio_EventInstance_GetParameter(
FMOD_STUDIO_EVENTINSTANCE *eventinstance,
const char *name,
FMOD_STUDIO_PARAMETERINSTANCE **parameter
);
C# Syntax
RESULT Studio.EventInstance.getParameter(
string name,
out ParameterInstance instance
);
JavaScript Syntax
EventInstance.getParameter(
name,
parameter // writes value to parameter.val
);
Parameters
- name
- Name of the parameter (case-insensitive).
- parameter
- Address of a variable to receive the ParameterInstance object.
Return Values
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
Remarks
NOTE: This function is deprecated. It will be removed in a future version. Please get and set parameter values using Studio::EventInstance::getParameterValue, Studio::EventInstance::setParameterValue, Studio::EventInstance::getParameterValueByIndex, and Studio::EventInstance::setParameterValueByIndex.
See Also
- Studio::ParameterInstance::setValue
- Studio::EventInstance::getParameterValue
- Studio::EventInstance::setParameterValue
- Studio::EventInstance::getParameterValueByIndex
- Studio::EventInstance::setParameterValueByIndex
Version 1.10.03 Built on Feb 1, 2018