NetworkBehaviour, you can write your own implementation of what should happen when these events occur. To do this, you override the virtual methods on the
NetworkBehaviourclass with your own implementation of what should happen when the given event occurs.
NetworkBehaviour, and where they are called
Startis called by unity before the first frame, while normally this happens after Mirror's callbacks. But if you dont call
NetworkServer.Spawnthe same frame as
instantiatethen start may be called first
OnSetHostVisibilityis now on