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

Any reason isClient, hasAuthority etc are set after OnStartX?

$
0
0
Not the best title, I admit.

Anyways, when spawning a new object with a NetworkBehaviour, you have a bunch of virtual methods you can override. OnStartServer, OnStartClient, OnStartAuthority. These are all fine and dandy, but it seems the network behaviour properties are actually set after some of these methods are called. For example, let's say you spawn an object with client authority, for the local client (host). So it will have:
  • isServer = true
  • isClient = true...

Any reason isClient, hasAuthority etc are set after OnStartX?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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