Hello!
I’m currently facing a weird issue (which could very well due to some stupid mistake I made, but did not find yet);
I’m using a SyncListStruct to synchronizes (and share) the score of each player in the game.
When a player object is created on the server, I call the Add function to add him in the list, and when he’s gone, I remove him using Remove/RemoveAt (tested both, just in case, although the error can occur even when noone left the game).
It’s quite simple, as soon as I’ve got an host and one client, the host sees 2 elements in the SyncListStruct (both in the code accessing that struct and in the inspector in debug mode), but the client sees 3 elements (one of the player is present twice in the list, even his score is duplicated). After several test, it seems that it’s always the client-player object that is present twice in the SyncListStruct representation of the client level.
Would anyone have an idea what I could investigate to fix the issue?
Thank you!