Skip to content

Commit ac013c2

Browse files
update
Adding NetworkTime.FixedDeltaTimeAsDouble property to provide a double version of the NetworkTime.FixedDeltaTime.
1 parent b0863ca commit ac013c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Timing/NetworkTime.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public struct NetworkTime
5050
/// </summary>
5151
public float FixedDeltaTime => (float)m_TickInterval;
5252

53+
/// <summary>
54+
/// Gets the fixed delta time as a double. This value is calculated by dividing 1.0 by the <see cref="TickRate"/> and stays constant.
55+
/// </summary>
56+
public double FixedDeltaTimeAsDouble => m_TickInterval;
57+
5358
/// <summary>
5459
/// Gets the amount of network ticks which have passed until reaching the current time value.
5560
/// </summary>

0 commit comments

Comments
 (0)