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
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class NetworkBehaviourWithOwnerNetworkVariables : NetworkBehaviour
Fields
NetworkVariableData1
Declaration
public NetworkVariable<int> NetworkVariableData1
Field Value
Type | Description |
---|---|
NetworkVariable<Int32> |
NetworkVariableData2
Declaration
public NetworkVariable<long> NetworkVariableData2
Field Value
Type | Description |
---|---|
NetworkVariable<Int64> |
NetworkVariableData3
Declaration
public NetworkVariable<byte> NetworkVariableData3
Field Value
Type | Description |
---|---|
NetworkVariable<Byte> |
NetworkVariableData4
Declaration
public NetworkVariable<ushort> NetworkVariableData4
Field Value
Type | Description |
---|---|
NetworkVariable<UInt16> |
Methods
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()