NetworkedBehaviourRegisterMessageHandler Method |
Registers a message handler
Namespace:
MLAPI
Assembly:
MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxprotected int RegisterMessageHandler(
string name,
Action<int, byte[]> action
)
Parameters
- name
- Type: SystemString
The MessageType to register - action
- Type: SystemActionInt32, Byte
The callback to get invoked whenever a message is received
Return Value
Type:
Int32HandlerId for the messageHandler that can be used to deregister the messageHandler
See Also