public int ChannelCount ;

説明

(Read Only) The number of channels in the current configuration.

ConnectionConfig myConfig = new ConnectionConfig();
myConfig.AddChannel(QosType.Unreliable);
myConfig.AddChannel(QosType.UnreliableFragmented);
myConfig.AddChannel(QosType.UnreliableSequenced);
myConfig.AddChannel(QosType.Reliable);
myConfig.AddChannel(QosType.ReliableFragmented);
myConfig.AddChannel(QosType.ReliableSequenced);
myConfig.AddChannel(QosType.StateUpdate);
myConfig.AddChannel(QosType.ReliableStateUpdate);
myConfig.AddChannel(QosType.AllCostDelivery);

for (int i = 0; i < myConfig.ChannelCount; ++i) { Debug.Log("Channel: " + i + " has qos: " + myConfig.Channels[i]); }