NetworkedBehaviourRegisterMessageHandler Method |  |
[This is preliminary documentation and is subject to change.]
Registers a message handler
Namespace:
MLAPI.MonoBehaviours.Core
Assembly:
MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxprotected int RegisterMessageHandler(
string name,
Action<uint, byte[]> action
)
Request Example
View SourceParameters
- name
- Type: SystemString
The MessageType to register - action
- Type: SystemActionUInt32, 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