We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a6f5b commit c65fb75Copy full SHA for c65fb75
MLAPI/Data/Transports/UNET/UnetTransport.cs
@@ -17,6 +17,8 @@ public class UnetTransport : Transport
17
public int ServerListenPort = 7777;
18
public int ServerWebsocketListenPort = 8887;
19
public bool SupportWebsocket = false;
20
+ public List<TransportChannel> Channels = new List<TransportChannel>();
21
+
22
23
// Relay
24
public bool UseMLAPIRelay = false;
@@ -262,6 +264,14 @@ public ConnectionConfig GetConfig()
262
264
channelNameToId.Add(MLAPI_CHANNELS[i].Name, channelId);
263
265
}
266
267
+ for (int i = 0; i < Channels.Count; i++)
268
+ {
269
+ int channelId = AddChannel(Channels[i].Type, config);
270
271
+ channelIdToName.Add(channelId, Channels[i].Name);
272
+ channelNameToId.Add(Channels[i].Name, channelId);
273
+ }
274
275
return config;
276
277
0 commit comments