Delegate NetworkVariable<T>.OnValueChangedDelegate
Delegate type for value changed event
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public delegate void NetworkVariable<T>.OnValueChangedDelegate(T previousValue, T newValue)
Parameters
Type | Name | Description |
---|---|---|
T | previousValue | The value before the change |
T | newValue | The new value |