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

SyncList not Initialized during Awake()

$
0
0
I am using SyncLists and I notice they throw errors when I use them during the Awake() method. This seems to be new to 5.2. Anybody else having this problem?

The flow I'd like to achieve is:
-Instantiate object on server
-Set SyncVar's during server Awake()
-Spawn object on client. All SyncVar's should be set by the spawn so correct values are there when OnStartClient() is called... this is why I'm trying to set SyncVar's during Awake() and not Start()

Code (csharp):
  1.  
  2. using UnityEngine;
  3. using...
SyncList not Initialized during Awake()

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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