• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    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

    deltaTime

    number
    ClientAndServer
    ReadOnly

    The time in seconds it took to complete the last frame. This is useful for creating frame-rate independent movement and animations.

    fixedDeltaTime

    number
    ClientAndServer
    ReadOnly

    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.

    serverTime

    number
    ClientAndServer
    ReadOnly

    The current server time in seconds since the server started. This is useful for synchronizing events across multiple clients.

    time

    number
    ClientAndServer
    ReadOnly

    The time in seconds since the start of the game. This is useful for creating time-based effects and animations.

    Updated 12 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.