Class NetworkBehaviourPrePostSpawnTests.NetworkBehaviourPostSpawn
Inheritance
NetworkBehaviourPrePostSpawnTests.NetworkBehaviourPostSpawn
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkBehaviourPrePostSpawnTests.NetworkBehaviourPostSpawn : NetworkBehaviour
Fields
OnNetworkPostSpawnCalled
Declaration
public bool OnNetworkPostSpawnCalled
Field Value
Type | Description |
---|---|
bool |
ValueSet
Declaration
public int ValueSet
Field Value
Type | Description |
---|---|
int |
Methods
OnNetworkPostSpawn()
Gets called after the NetworkObject is spawned. All NetworkBehaviours associated with the NetworkObject will have had OnNetworkSpawn() invoked.
Declaration
protected override void OnNetworkPostSpawn()
Overrides
Remarks
Will be invoked on each NetworkBehaviour associated with the NetworkObject being spawned. All associated NetworkBehaviour components will have had OnNetworkSpawn() invoked on the spawned NetworkObject.
OnNetworkSpawn()
Gets called when the NetworkObject gets spawned, message handlers are ready to be registered and the network is setup.
Declaration
public override void OnNetworkSpawn()