Search Unity

Third Party [Mirror] client clear list

Discussion in 'Multiplayer' started by raxar4, Jul 12, 2021.

  1. raxar4

    raxar4

    Joined:
    Apr 25, 2019
    Posts:
    20
    I am working on lobby in mirror, i have players list in myNetworkManager. I clear that list OnStopClient but this only remove object from list so I have null object in list. When i do the same on sever it works correct.

    Code (CSharp):
    1. public override void OnStopClient()
    2.     {
    3.         Players.Clear();
    4.     }
    Why this is work like this and how to fix?
     

    Attached Files: