NetworkBehaviour Members
The NetworkBehaviour type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
InitializeSynchonizedFields |
Initializes all synchronized fields based on their types.
|
![]() |
InternalNetworkAwake |
Called when the network object is awakened. Executes different initialization
methods based on the current behavior mode (Active or Passive).
|
![]() |
InternalNetworkFixedUpdate |
Called every fixed framerate frame. Executes different fixed update methods
based on the current behavior mode (Active or Passive).
|
![]() |
InternalNetworkLateUpdate |
Called after all Update functions have been called. Executes different late
update methods based on the current behavior mode (Active or Passive).
|
![]() |
InternalNetworkStart |
Called when the network object is started. Executes different start methods
based on the current behavior mode (Active or Passive).
|
![]() |
InternalNetworkUpdate |
Called every frame to update the network object. Executes different update
methods based on the current behavior mode (Active or Passive).
|
![]() |
OnDespawned |
Called when the network object is despawned. Invokes the corresponding method.
|
![]() |
OnMessageReceived |
Called when a message is received from the network.
|
![]() |
OnNetworkStarted |
Virtual method to be overridden by derived classes to perform actions when the network starts.
|
![]() |
OnSpawned |
Called when the network object is spawned. Invokes the corresponding method
and triggers the network start event for passive execution.
|
![]() |
RegisterSynchonizedField |
Registers a field to be synchronized if it is not already registered.
|
![]() |
StartNetwork |
Starts the network behavior and collects method implementations.
|
Fields
Name | Description | |
---|---|---|
![]() |
onDespawned | |
![]() |
onDespawnedOnServer | |
![]() |
onMessageReceived | |
![]() |
onSpawned | |
![]() |
onSpawnedOnServer |