Class DictionaryCollectionUpdateHelper
Helper class to test adding NetworkVariable<T> dictionary entries rapidly with frequent ownership changes. This includes a companion NetworkVariable<T> integer that is continually incremented and used as the key value for each entry.
Inheritance
DictionaryCollectionUpdateHelper
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: Unity.Netcode.RuntimeTests.dll
Syntax
public class DictionaryCollectionUpdateHelper : BaseCollectionUpdateHelper
Methods
AddItem()
Declaration
public override void AddItem()
Overrides
OnClear(bool)
Declaration
protected override void OnClear(bool force)
Parameters
Type | Name | Description |
---|---|---|
bool | force |
Overrides
OnNetworkDespawn()
Gets called when the NetworkObject gets despawned. Is called both on the server and clients.
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkPostSpawn()
Gets called after the NetworkObject is spawned. All NetworkBehaviours associated with the NetworkObject will have had OnNetworkSpawn() invoked.
Declaration
protected override void OnNetworkPostSpawn()
Overrides
Remarks
Will be invoked on each NetworkBehaviour associated with the NetworkObject being spawned. All associated NetworkBehaviour components will have had OnNetworkSpawn() invoked on the spawned NetworkObject.
OnValidateAgainst(BaseCollectionUpdateHelper)
Declaration
protected override bool OnValidateAgainst(BaseCollectionUpdateHelper otherHelper)
Parameters
Type | Name | Description |
---|---|---|
BaseCollectionUpdateHelper | otherHelper |
Returns
Type | Description |
---|---|
bool |
Overrides
OnValueChangedCount()
Declaration
public override int OnValueChangedCount()
Returns
Type | Description |
---|---|
int |