RegisterMessageHandler(string, Action<int, byte[]>)
Registers a handler to process all incoming messages on a specific channel.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.MPE
- Assembly: UnityEditor.CoreModule
public static Action RegisterMessageHandler(string channelName, Action<int, byte[]> handler)
Parameters
The name of the channel.
The handler that processes messages.
Returns
Type | Description |
|---|---|
| Action | An action that you can use to unregister the handler from message processing (see ChannelService.UnregisterMessageHandler). |