NetworkTime.localTime comments

This commit is contained in:
mischa 2024-07-20 12:25:49 +02:00
parent c0ec6d7abe
commit 78008e0d61

View File

@ -30,7 +30,9 @@ public static class NetworkTime
static ExponentialMovingAverage _rtt = new ExponentialMovingAverage(PingWindowSize);
/// <summary>Returns double precision clock time _in this system_, unaffected by the network.</summary>
/// <summary>Returns unscaled time (double precision) at the beginning of this frame.</summary>
// this needs to be 'time at beginning of frame' for it to be usable as tick number.
// this can't be continous time.
#if UNITY_2020_3_OR_NEWER
public static double localTime
{