---
title: Play(ref 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/timerstateextensions/play
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/timerstateextensions/play.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:50:17.411Z
locale: en-us
---

# Play(ref TimerState)

> Starts playing a TimerState, so that it advances during all following updates of the TimerState.

## Definition

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

## Play(TimerState)

```csharp
public static void Play(this ref TimerState timerState)
```

### Parameters

**** (\[TimerState]\(/engine/7000.0/script-reference/unity/animations/timerstate)): The timer state to play.

### Remarks

[TimerState.PlayState](/engine/7000.0/script-reference/unity/animations/timerstate/playstate.md) becomes [TimeControlState.Playing](/engine/7000.0/script-reference/unity/animations/timecontrolstate/playing.md) on the next [TimerStateExtensions.Update](/engine/7000.0/script-reference/unity/animations/timerstateextensions/update.md). [TimerState.IsPlaying](/engine/7000.0/script-reference/unity/animations/timerstate/isplaying.md) is `true` right away.
