Class HiddenVariableObject
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 HiddenVariableObject : NetworkBehaviour
Fields
ClientInstancesSpawned
Declaration
public static List<NetworkObject> ClientInstancesSpawned
Field Value
Type | Description |
---|---|
List<NetworkObject> |
ExpectedSize
Declaration
public static int ExpectedSize
Field Value
Type | Description |
---|---|
int |
MyNetworkList
Declaration
public NetworkList<int> MyNetworkList
Field Value
Type | Description |
---|---|
NetworkList<int> |
MyNetworkVariable
Declaration
public NetworkVariable<int> MyNetworkVariable
Field Value
Type | Description |
---|---|
NetworkVariable<int> |
SpawnCount
Declaration
public static int SpawnCount
Field Value
Type | Description |
---|---|
int |
ValueOnClient
Declaration
public static Dictionary<ulong, int> ValueOnClient
Field Value
Type | Description |
---|---|
Dictionary<ulong, int> |
Methods
Changed(int, int)
Declaration
public void Changed(int before, int after)
Parameters
Type | Name | Description |
---|---|---|
int | before | |
int | after |
ListChanged(NetworkListEvent<int>)
Declaration
public void ListChanged(NetworkListEvent<int> listEvent)
Parameters
Type | Name | Description |
---|---|---|
NetworkListEvent<int> | listEvent |
OnNetworkDespawn()
Gets called when the NetworkObject gets despawned. Is called both on the server and clients.
Declaration
public override void OnNetworkDespawn()
Overrides
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()