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

Need help with SyncListString

$
0
0
Can anyone tell me what's wrong with this script. I just want the names of all players in a synclist, but for some reason only the host gets in there and the client is null. Manager and servermanager are singletons. The name does exist cause I can call it in debug logs.

Code (CSharp):
  1. public class ServerManager : NetworkBehaviour {
  2.     public SyncListString ClientNameList = new SyncListString();
  3.  
  4. private void OnStringChanged(SyncListString.Operation op, int index) {
  5.         Debug.Log("list...
Need help with SyncListString

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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