FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.38k stars 149 forks source link

Sync List not work correctly #714

Closed LeThaiThinh18021228 closed 4 months ago

LeThaiThinh18021228 commented 4 months ago

General Unity version: 2022.3.33f1 Fish-Networking version: 4.3.5 Discord link: https://discord.com/channels/1097192587879776286/1097192588374716488

Description SyncList out of order only when clienthost turn off client connection, then reconnect.

Replication Steps to reproduce the behavior: My gameplay is there are some interactable objects in scene, whenever player trigger, it disappears and reappear other position using pool. But I think we can reproduce corresponding as:

  1. Remove/Add nob from SyncList in callback OnStop/StartServer (NetworkObject have NetworkObserver Component),
  2. Activate Clienthost
  3. Disconnect client
  4. Reconnect client
  5. Bug "Out of order"

Expected behavior No bug

FirstGearGames commented 4 months ago

Link is dead.

LeThaiThinh18021228 commented 4 months ago

I think it bug because I use syncList of NetworkObject that have ObserverNetwork. When move in and out, it null