Search Unity

Third Party [Mirror Networking] Player client disconnect after scene changed

Discussion in 'Multiplayer' started by Clashman, Oct 13, 2022.

  1. Clashman

    Clashman

    Joined:
    Feb 18, 2019
    Posts:
    53
    Hi !

    I'm currently using Mirror Networking to make a multiplayer game. I have a scene when players are all connected, they can choose their characters and set the ready. If all players are ready, I change current scene to arena scene using MyNetworkManager.ServerChangeScene(arenaSceneName). This method sets all player clients as not ready. But After the scene was loaded, my player client is no longer connected to my host and I don't know why.

    Can you help me please ?

    Thanks a lot for answers.
     
  2. Clashman

    Clashman

    Joined:
    Feb 18, 2019
    Posts:
    53
    I succeed to make the playerclient connected when the scene change. Now, the player prefab for my client is in host view but not in the corresponding client view. Do someone can tell me why ?