Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ChannelClientScope

Create a new Channel Client scope.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEditor.MPE
  • Assembly: UnityEditor.CoreModule

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.