Skip to content

Commit 7000fae

Browse files
update
Putting back the T Update(float deltaTime, NetworkTime serverTime) method and marking it as being deprectated.
1 parent be8e176 commit 7000fae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Components/Interpolator/BufferedLinearInterpolator.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,20 @@ public T Update(float deltaTime, double renderTime, double serverTime)
450450
}
451451
#endregion
452452

453+
/// <summary>
454+
/// Convenience version of 'Update' mainly for testing
455+
/// the reason we don't want to always call this version is so that on the calling side we can compute
456+
/// the renderTime once for the many things being interpolated (and the many interpolators per object)
457+
/// </summary>
458+
/// <param name="deltaTime">time since call</param>
459+
/// <param name="serverTime">current server time</param>
460+
/// <returns>The newly interpolated value of type 'T'</returns>
461+
[Obsolete("This method is being deprecated due to it being only used for internal testing purposes.", false)]
462+
public T Update(float deltaTime, NetworkTime serverTime)
463+
{
464+
return UpdateInternal(deltaTime, serverTime);
465+
}
466+
453467
/// <summary>
454468
/// Used for internal testing
455469
/// </summary>

0 commit comments

Comments
 (0)