Search Unity

Resolved ClientId to TransportId in NetworkManager

Discussion in 'Unity Transport' started by teamclouday, Dec 21, 2022.

  1. teamclouday

    teamclouday

    Joined:
    Jan 11, 2022
    Posts:
    5
    Hey, I'm using netcode v1.2.0 and have created my customized transport (for Nakama).

    The transport assigns an ID for each connection. I need to use the transport IDs in code to identify the users in Nakama.
    I thought I could use the client IDs assigned by NetworkManager.
    However, NetworkManager internally uses a different set of client IDs and creates a mapping between ClientId and TransportId.

    Is there anyway to access these mappings? Currently, the mappings are private and the related functions are all internal.
     
  2. teamclouday

    teamclouday

    Joined:
    Jan 11, 2022
    Posts:
    5