Skip to content

Commit 7c6cc17

Browse files
committed
reverted API removal
1 parent 0678062 commit 7c6cc17

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

com.unity.netcode.gameobjects/Runtime/NetworkVariable/AnticipatedNetworkVariable.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,16 @@ public T AuthoritativeValue
249249
}
250250
}
251251
}
252-
253252

253+
/// <summary>
254+
/// A function to interpolate between two values based on a percentage.
255+
/// See <see cref="Mathf.Lerp"/>, <see cref="Vector3.Lerp"/>, <see cref="Vector3.Slerp"/>, and so on
256+
/// for examples.
257+
/// </summary>
258+
/// <param name="authoritativeValue">The authoritative value to interpolate from</param>
259+
/// <param name="anticipatedValue">The anticipated value to interpolate to</param>
260+
/// <param name="amount">The interpolation factor between 0 and 1</param>
261+
/// <returns>The interpolated value</returns>
254262
public delegate T SmoothDelegate(T authoritativeValue, T anticipatedValue, float amount);
255263

256264
private SmoothDelegate m_SmoothDelegate = null;

0 commit comments

Comments
 (0)