기술 자료

Unity Engine

Unity Engine

ChannelClientScope

Create a new Channel Client scope.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

ChannelClientScope(bool, string, Action<string>, bool)

Create a new Channel Client scope.
public ChannelClientScope(bool autoTick, string channelName, Action<string> handler, bool closeClientOnExit = true)

Parameters

autoTick

If true, starts the channel client in auto tick mode.

channelName

Name of the channel to open.

Handler to process message on the channel.

closeClientOnExit

If true, closes the client on exit.

ChannelClientScope(bool, string, Action<byte[]>, bool)

Create a new Channel Client scope.
public ChannelClientScope(bool autoTick, string channelName, Action<byte[]> handler, bool closeClientOnExit = true)

Parameters

autoTick

If true, starts the channel client in auto tick mode.

channelName

Name of the channel to open.

Handler to process message on the channel.

closeClientOnExit

If true, closes the client on exit.