- Home /
Question by
Morgenstern_1 · Jun 07, 2016 at 03:31 PM ·
unity 5networkingorder-of-executioncalls
UNET Function Call Order is Different In Editor?
Hi guys,
I'm having some issues at the moment because the call order of UNET functions seems to be different in a build vs the editor (Unity 5.3.5f1).
When I run in the editor, and move to my online scene: OnStartServer runs on all of my networked scene objects, allowing them to set up. OnServerAddPlayer is called on my class that extends NetworkManager.
But if I do a build and load the exact same scene then those same functions are called in the opposite order causing scene objects to not be set up yet and everything to break horribly. Is there any way around this? Can anyone think of why the call order would change?
Any help is appreciated.
Comment