Time
The Time class provides access to time-related information and functionality in Unity. It allows you to measure time intervals, control the flow of time, and access various time-related properties such as delta time, fixed delta time, and server time. This class is essential for creating smooth animations, controlling game speed, and implementing time-based mechanics in your Unity projects.
Properties
The time in seconds it took to complete the last frame. This is useful for creating frame-rate independent movement and animations.
The interval in seconds at which physics and other fixed frame rate updates are performed. This is typically set to 0.02 seconds (50 Hz) by default.
The current server time in seconds since the server started. This is useful for synchronizing events across multiple clients.
The time in seconds since the start of the game. This is useful for creating time-based effects and animations.
Updated 12 days ago