Unity C# - Time.time & time.deltatime [closed]

What are the differences between these two floats, when and how to use them? I checked the Unity Scripting API and I still don't understand them that much, so I came here to ask about it.

Referenced docs:

1

1 Answer

Basically,

the Time.time is the time that has passed since the beginning of the cycle, this can be used to get the time since the game started.

Time.deltatime is the time that has passed to complete the last frame, this should be used to implement a timer for an activity in the game.

[reference 1]

[reference 2]

You Might Also Like