File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1467,6 +1467,20 @@ private void HostServerInitialize()
14671467 ConnectionManager . InvokeOnClientConnectedCallback ( LocalClientId ) ;
14681468 }
14691469
1470+ /// <summary>
1471+ /// Get the transportId from the associated clientId.
1472+ /// </summary>
1473+ /// <param name="clientId">The ClientId to get the TransportId from</param>
1474+ /// <returns></returns>
1475+ public ulong GetTransportIdFromClientId ( ulong clientId ) => ConnectionManager . ClientIdToTransportId ( clientId ) ;
1476+
1477+ /// <summary>
1478+ /// Get the clientId from the associated transportId.
1479+ /// </summary>
1480+ /// <param name="clientId">The TransportId to get the ClientId from</param>
1481+ /// <returns></returns>
1482+ public ulong GetClientIdFromTransportId ( ulong transportId ) => ConnectionManager . TransportIdToClientId ( transportId ) ;
1483+
14701484 /// <summary>
14711485 /// Disconnects the remote client.
14721486 /// </summary>
You can’t perform that action at this time.
0 commit comments