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

SyncListStruct contains double on client. Works on host.

$
0
0
I'm using a SyncListStruct with 171 items in it. On the host I get 171 items and it works but on the client I get 342 items.

I'm using 5.4.0b14.

Code (CSharp):
  1.  
  2. [SyncVar]
  3. public SyncListHexData hexes = new SyncListHexData();
  4.  
Code (CSharp):
  1.  
  2. public class SyncListHexData : SyncListStruct<HexData> {}
  3.  
Code (CSharp):
  1.  
  2. public struct HexData
  3. {
  4.     public int x;
  5.     public int y;
  6.     public Vector3 pos;
  7.     public bool occupied;
  8.     public bool canSpawnHerePlayer1;
  9.     public bool...
SyncListStruct contains double on client. Works on host.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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