Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,20 @@ private void HostServerInitialize()
ConnectionManager.InvokeOnClientConnectedCallback(LocalClientId);
}

/// <summary>
/// Get the transportId from the associated clientId.
/// </summary>
/// <param name="clientId">The ClientId to get the TransportId from</param>
/// <returns></returns>
public ulong GetTransportIdFromClientId(ulong clientId) => ConnectionManager.ClientIdToTransportId(clientId);

/// <summary>
/// Get the clientId from the associated transportId.
/// </summary>
/// <param name="clientId">The TransportId to get the ClientId from</param>
/// <returns></returns>
public ulong GetClientIdFromTransportId(ulong transportId) => ConnectionManager.TransportIdToClientId(transportId);

/// <summary>
/// Disconnects the remote client.
/// </summary>
Expand Down