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 @@ -903,6 +903,20 @@ private void HostServerInitialize()
903903 ConnectionManager . InvokeOnClientConnectedCallback ( LocalClientId ) ;
904904 }
905905
906+ /// <summary>
907+ /// Get the transportId from the associated clientId.
908+ /// </summary>
909+ /// <param name="clientId">The ClientId to get the TransportId from</param>
910+ /// <returns></returns>
911+ public ulong GetTransportIdFromClientId ( ulong clientId ) => ConnectionManager . ClientIdToTransportId ( clientId ) ;
912+
913+ /// <summary>
914+ /// Get the clientId from the associated transportId.
915+ /// </summary>
916+ /// <param name="clientId">The TransportId to get the ClientId from</param>
917+ /// <returns></returns>
918+ public ulong GetClientIdFromTransportId ( ulong transportId ) => ConnectionManager . TransportIdToClientId ( transportId ) ;
919+
906920 /// <summary>
907921 /// Disconnects the remote client.
908922 /// </summary>
You can’t perform that action at this time.
0 commit comments