Firelight Technologies FMOD Studio API
Studio::Bank::setUserData
Sets arbitrary user data on the bank.
C++ Syntax
FMOD_RESULT Studio::Bank::setUserData(
void *userData
);
C Syntax
FMOD_RESULT FMOD_Studio_Bank_SetUserData(
FMOD_STUDIO_BANK *bank,
void *userData
);
C# Syntax
RESULT Studio.Bank.setUserData(
IntPtr userdata
);
JavaScript Syntax
Bank.setUserData(
userdata
);
Parameters
- userData
- Address of user data to store within the event description 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
This function is primarily used in case the user wishes to 'attach' data
to an FMOD object.
It can be useful if an FMOD callback passes an object of this type as a
parameter, and the user does not know which object it is (e.g. if many
objects of this type exist). Using Studio::Bank::getUserData
would help in the identification of the object.
See Also
Version 1.10.03 Built on Feb 1, 2018