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