Lifecycle Events
Aside from the usual events in an AirshipBehaviour
, the network behaviour adds the following you can use:
General Networking Events
OnStartNetwork
- Method called when the object starts networkingOnStopNetwork
- Method called when the object stops networking
Server Only
OnStartServer
- Method called when the object starts networking on the serverOnOwnershipServer
- Method called when the ownership of an object is changed on the serverOnSpawnServer
- Method called when the object spawns on the serverOnDespawnServer
- Method called when the object is despawned on the serverOnStopServer
- Method called when the object stops networking on the server
Client Only
OnStartClient
- Method called when the object starts networking on the clientOnOwnershipClient
- Method called when the ownership is changed on the clientOnStopClient
- Method called when the object stops networking on the client
Execution Ordering of Events
Last updated