- Home /
Question by
hexagonius · Jan 25, 2018 at 08:22 PM ·
networkingstartcallback
Why not using Start exlusively in NetworkBehaviours?
Today I figured out that no matter where you're using a NetworkBehaviour (Server, Client, Host), all calls related to localPlayer and authority are always run prior to finally calling Start. That's what this page says:
https://docs.unity3d.com/Manual/NetworkBehaviourCallbacks.html.
This means you could use Start exclusively because all the bool values are available to check. So why would you want to use and learn about OnStartLocalPlayer and OnStartAuthority when there's isLocalPlayer and hasAuthority available and ready in Start?
Comment
Your answer
Follow this Question
Related Questions
Unity TCP async functions 0 Answers
UNet: How to know when a client fails to connect 2 Answers
Networking, Scene dependent? 1 Answer