Delegate NetworkVariable<T>.CheckExceedsDirtinessThresholdDelegate
Delegate that determines if the difference between two values exceeds a threshold for network synchronization
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public delegate bool NetworkVariable<T>.CheckExceedsDirtinessThresholdDelegate(in T previousValue, in T newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| T | previousValue | The previous value to compare against |
| T | newValue | The new value to compare |
Returns
| Type | Description |
|---|---|
| bool | True if the difference exceeds the threshold and should be synchronized, false otherwise |