Class NetworkVariableHelper<T>
Will automatically register for the NetworkVariable OnValueChanged
delegate handler. It then will expose that single delegate invocation
to anything that registers for this NetworkVariableHelper's instance's OnValueChanged event.
This allows us to register any NetworkVariable type as well as there are basically two "types of types":
From both we can then at least determine if the value indeed changed
Inheritance
NetworkVariableHelper<T>
Assembly: Unity.Netcode.TestHelpers.Runtime.dll
Syntax
public class NetworkVariableHelper<T> : NetworkVariableBaseHelper
Type Parameters
Constructors
NetworkVariableHelper(NetworkVariableBase)
Declaration
public NetworkVariableHelper(NetworkVariableBase networkVariable)
Parameters
Events
OnValueChanged
Declaration
public event NetworkVariableHelper<T>.OnMyValueChangedDelegateHandler OnValueChanged
Event Type