---
title: TimerState
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/timerstate
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/timerstate.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:42:05.075Z
locale: en-us
---

# TimerState

> Data used to represent the current state of an animation timer.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public struct TimerState
```

## Fields

| Value                                                                                     | Description                                                                                                                                                        |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [CycleOffset](/engine/7000.0/script-reference/unity/animations/timerstate/cycleoffset.md) | The point of the cycle where the timer starts, as a fraction of [TimerState.Range](/engine/7000.0/script-reference/unity/animations/timerstate/range.md) duration. |
| [Range](/engine/7000.0/script-reference/unity/animations/timerstate/range.md)             | Determines what is the valid time range.                                                                                                                           |
| [TimeScale](/engine/7000.0/script-reference/unity/animations/timerstate/timescale.md)     | The time scale of the timer.                                                                                                                                       |
| [WrapMode](/engine/7000.0/script-reference/unity/animations/timerstate/wrapmode.md)       | How the timer treats time outside of its range.                                                                                                                    |

## Properties

| Property                                                                                              | Description                                                                                                                                            |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [DeltaTime](/engine/7000.0/script-reference/unity/animations/timerstate/deltatime.md)                 | The delta time this frame.                                                                                                                             |
| [IsPlaying](/engine/7000.0/script-reference/unity/animations/timerstate/isplaying.md)                 | Whether the timer advances on the next [TimerStateExtensions.Update](/engine/7000.0/script-reference/unity/animations/timerstateextensions/update.md). |
| [LoopCount](/engine/7000.0/script-reference/unity/animations/timerstate/loopcount.md)                 | The number of times this has been looped in total until the current frame (included)                                                                   |
| [NextPlayState](/engine/7000.0/script-reference/unity/animations/timerstate/nextplaystate.md)         | The play state that the timer takes on the next update.                                                                                                |
| [PlayState](/engine/7000.0/script-reference/unity/animations/timerstate/playstate.md)                 | The play state for the current frame.                                                                                                                  |
| [PreviousLoopCount](/engine/7000.0/script-reference/unity/animations/timerstate/previousloopcount.md) | The number of times this has been looped in total until the previous frame (included)                                                                  |
| [PreviousPlayState](/engine/7000.0/script-reference/unity/animations/timerstate/previousplaystate.md) | The play state on the previous frame.                                                                                                                  |
| [PreviousTime](/engine/7000.0/script-reference/unity/animations/timerstate/previoustime.md)           | The time on the previous frame.                                                                                                                        |
| [Time](/engine/7000.0/script-reference/unity/animations/timerstate/time.md)                           | The time this frame.                                                                                                                                   |

## Static Methods

| Method                                                                          | Description                                      |
| ------------------------------------------------------------------------------- | ------------------------------------------------ |
| [Create](/engine/7000.0/script-reference/unity/animations/timerstate/create.md) | Creates a playing timer at the start of a range. |
