Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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