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

GameObject.Find not working with OnStartLocalPlayer for LobbyManager?

$
0
0
Hi,

When using the LobbyManager, if I put a GameObject.Find in the Override OnStartLocalPlayer, I get an error "Object Reference not set to an instance of an object", even if the object is in the scene. It looks like in the case of LobbyManager that OnStartLocalPlayer is called before the scene is loaded..

If I use NetworkManager it works fine...

Is this a bug?

Thanks,
Nicolas

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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