Class ListCollectionUpdateHelper
Helper class to test adding list entries rapidly with frequent ownership changes
Inheritance
ListCollectionUpdateHelper
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 ListCollectionUpdateHelper : 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 |