Class NetworkBehaviourWithNetworkVariables
A test NetworkBeahviour that provides a varying NetworkList size as well as additional NetworkVariables to assure if a NetworkObject fails to be created the synchronization process will continue (i.e. it will skip over that block of the reader buffer).
Inheritance
NetworkBehaviourWithNetworkVariables
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 NetworkBehaviourWithNetworkVariables : NetworkBehaviour
Fields
ClientSpawnCount
Declaration
public static readonly Dictionary<ulong, int> ClientSpawnCount
Field Value
Type | Description |
---|---|
Dictionary<UInt64, Int32> |
NetworkVariableData1
Declaration
public NetworkList<ulong> NetworkVariableData1
Field Value
Type | Description |
---|---|
NetworkList<UInt64> |
NetworkVariableData2
Declaration
public NetworkVariable<int> NetworkVariableData2
Field Value
Type | Description |
---|---|
NetworkVariable<Int32> |
NetworkVariableData3
Declaration
public NetworkVariable<long> NetworkVariableData3
Field Value
Type | Description |
---|---|
NetworkVariable<Int64> |
NetworkVariableData4
Declaration
public NetworkVariable<byte> NetworkVariableData4
Field Value
Type | Description |
---|---|
NetworkVariable<Byte> |
Properties
ServerSpawnCount
Declaration
public static int ServerSpawnCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()
Overrides
ResetSpawnCount()
Declaration
public static void ResetSpawnCount()