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

UNET Scene Objects not Spawning w/ Custom NetworkManager

$
0
0
5.2.2f1
TLDR
Don't EVER call Awake() in a custom NetworkManager!


So after a lot of testing I think I finally tracked down the source of my problems. If you have a custom Network Manager that inherits from NetworkManager it appears to override NetworkManager's base initialization if you call your own initialization during Awake(). This causes things like the NetworkManager.singleton not to be set, and also causes SceneObjects not to be "spawned" when a scene is...

UNET Scene Objects not Spawning w/ Custom NetworkManager

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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