文档

Unity Engine

Unity Engine

RegisterMessageHandler(string, Action<int, byte[]>)

Registers a handler to process all incoming messages on a specific channel.
阅读时间1 分钟最后更新于 2 小时前

Definition

public static Action RegisterMessageHandler(string channelName, Action<int, byte[]> handler)

Parameters

channelName

The name of the channel.

The handler that processes messages.

Returns

Type

Description

ActionAn action that you can use to unregister the handler from message processing (see ChannelService.UnregisterMessageHandler).