Introduction to Time in Unity
Notes:
Unity Scripting API - Time - Introduction
- Time is a most important factor in any game. Unity keeps track of various time information
Ex:
Time passed in seconds; since the game started
Time passed in seconds; since the last level has been loaded
Time passed in seconds; since the last Update call
Time passed in seconds; since the last FixedUpdate call
The scale at which time is passing
etc.
Unity Scripting API - Time Class:
Time class contains various properties; which help us to get various time information so that we can update state of a game object(s) with respect to time, keep track of total game play time, increase or decrease game speed etc.