ChannelClientScope
Create a new Channel Client scope.
阅读时间1 分钟最后更新于 2 小时前
Definition
- Type: Constructor
- Namespace: UnityEditor.MPE
- Assembly: UnityEditor
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
If true, starts the channel client in auto tick mode.
Name of the channel to open.
Handler to process message on the channel.
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
If true, starts the channel client in auto tick mode.
Name of the channel to open.
Handler to process message on the channel.
If true, closes the client on exit.