Skip to content

Time

Time (not to be confused with the devalued Timer class) is a static global class which provides access to Unity's time information.

Example Usage: Time.time

Member Variables

All of the member variables of time are read only.

Function Name Description Return
time Returns the current time. Works like os.time() but is more accurate.
delta_time Returns the amount of time since the last frame.
fixed_time Returns a number like time does, but using Fixed updates.
fixed_delta_time Returns a number like delta_time does, but using Fixed updates.
frame_count Returns the amount of total frames since the scene began.