registerEvent

Register a function for an unity event callback

Parameters

NameTypeDescription
eventstringEvent name
callbackFunctionCallback function
userIdstring(optionnal) A custom user id. Allow you to delete all registered events with these id by calling "unregisterEventByUserId"

Example

Javascript
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard