Class NetworkBehaviourWithOwnerNetworkVariables
A test NetworkBeahviour that has varying permissions in order to validate that when variable length safety checks are off NetworkVariables still are updated properly.
Inheritance
NetworkBehaviourWithOwnerNetworkVariables
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: solution.dll
Syntax
public class NetworkBehaviourWithOwnerNetworkVariables : NetworkBehaviour
Fields
NetworkVariableData1
Declaration
public NetworkVariable<int> NetworkVariableData1
Field Value
Type | Description |
---|---|
NetworkVariable<int> |
NetworkVariableData2
Declaration
public NetworkVariable<long> NetworkVariableData2
Field Value
Type | Description |
---|---|
NetworkVariable<long> |
NetworkVariableData3
Declaration
public NetworkVariable<byte> NetworkVariableData3
Field Value
Type | Description |
---|---|
NetworkVariable<byte> |
NetworkVariableData4
Declaration
public NetworkVariable<ushort> NetworkVariableData4
Field Value
Type | Description |
---|---|
NetworkVariable<ushort> |
Methods
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()