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
Syntax
public class NetworkBehaviourWithNetworkVariables : NetworkBehaviour
Fields
ClientSpawnCount
Declaration
public static readonly Dictionary<ulong, int> ClientSpawnCount
Field Value
NetworkVariableData1
Declaration
public NetworkList<ulong> NetworkVariableData1
Field Value
NetworkVariableData2
Declaration
public NetworkVariable<int> NetworkVariableData2
Field Value
NetworkVariableData3
Declaration
public NetworkVariable<long> NetworkVariableData3
Field Value
NetworkVariableData4
Declaration
public NetworkVariable<byte> NetworkVariableData4
Field Value
Properties
ServerSpawnCount
Declaration
public static int ServerSpawnCount { get; }
Property Value
Methods
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()
Overrides
ResetSpawnCount()
Declaration
public static void ResetSpawnCount()