Search Unity

MLAPI Player Reconnect same client id?

Discussion in 'Multiplayer' started by microteq, Sep 16, 2021.

  1. microteq

    microteq

    Joined:
    Jun 17, 2021
    Posts:
    7
    Hi

    Does anyone know, if a player reconnects with MLAPI, after having been disconnected (maybe by a bad internet connection), does he get the same clientId or a different one?

    Many thanks
     
  2. luke-unity

    luke-unity

    Joined:
    Sep 30, 2020
    Posts:
    306
    Currently a reconnecting player will get a different id. In our Boss Room sample we are using a global unique ID to keep track of each player in case they reconnect, you can checkout our implementation for how to do that.
     
    wlwl2 likes this.