dacha
    Preparing search index...

    Interface Time

    Shared timing state for the game.

    All durations are expressed in seconds.

    Index
    • get alpha(): number

      Interpolation factor in [0, 1) between the last two fixed steps, for smoothing rendered state. Only meaningful during update.

      Returns number

    • get deltaTime(): number

      Time elapsed since the last variable update in seconds.

      Use this for logic in update. In fixedUpdate, use Time.fixedDeltaTime instead.

      Returns number

    • get elapsedTime(): number

      Total time in seconds since the game started.

      Returns number

    • get fixedDeltaTime(): number

      The constant fixed-update timestep in seconds.

      Set once from the configured fixed update rate. Use this for logic in fixedUpdate.

      Returns number

    • set fixedDeltaTime(value: number): void

      The constant fixed-update timestep in seconds.

      Set once from the configured fixed update rate. Use this for logic in fixedUpdate.

      Parameters

      • value: number

      Returns void