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

Why Does Adding to My SyncListStruct Break SyncVar?

$
0
0
So I tried making a SyncListStruct that didn't work. So then I tried just doing SyncVar on the same Game Object and that didn't work. After checking each portion of code I found out why my SyncVar wasn't working and it turns out that it was because of the line that adds to my SyncStructList. Question is why?

Inside my RandomSpawnLocation method I have the line vPosList.Add(tempVpos); which seems to prevent SyncVar from working.

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;...
Why Does Adding to My SyncListStruct Break SyncVar?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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