Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

UNET Bug when modifying SyncListStructs before AddPlayerForConnection

$
0
0
I have a rather huge UNET project where a player has several different SyncListStructs for items, equipment, skills, quests etc. I implemented my own OnServerAddPlayer function, which:
  • Instantiates the playerPrefab
  • Then loads the player data from the Database and writes it to SyncLists
  • Then calls AddPlayerForConnection
Writing to SyncLists before AddPlayerForConnection causes my last two SyncListStructs (skills and quest) to be not synced to a client anymore, while...

UNET Bug when modifying SyncListStructs before AddPlayerForConnection

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>