Delegate AnticipatedNetworkVariable<T>.SmoothDelegate
A function to interpolate between two values based on a percentage. See Lerp(float, float, float), Lerp(Vector3, Vector3, float), Slerp(Vector3, Vector3, float), and so on for examples.
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public delegate T AnticipatedNetworkVariable<T>.SmoothDelegate(T authoritativeValue, T anticipatedValue, float amount)
Parameters
Type | Name | Description |
---|---|---|
T | authoritativeValue | |
T | anticipatedValue | |
float | amount |
Returns
Type | Description |
---|---|
T |