---
title: Create(DiscreteTimeInterval, WrapMode, float)
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/create
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/timerstate/create.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:51:32.804Z
locale: en-us
---

# Create(DiscreteTimeInterval, WrapMode, float)

> Creates a playing timer at the start of a range.

## 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)

```csharp
public static TimerState Create(DiscreteTimeInterval range, WrapMode wrapMode, float cycleOffset = 0)
```

### Parameters

**** (\[DiscreteTimeInterval]\(/engine/7000.0/script-reference/unity/animations/discretetimeinterval)): The time range of the timer.**** (\[WrapMode]\(/engine/7000.0/script-reference/unityengine/wrapmode)): How the timer treats time outside of `range`.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The point of the cycle where the timer starts, as a fraction of the duration of `range`. Only [WrapMode.Loop](/engine/7000.0/script-reference/unityengine/wrapmode/loop.md) uses it.

### Returns

| Type                                                                         | Description    |
| ---------------------------------------------------------------------------- | -------------- |
| [TimerState](/engine/7000.0/script-reference/unity/animations/timerstate.md) | The new timer. |

### Remarks

The timer has a [TimerState.TimeScale](/engine/7000.0/script-reference/unity/animations/timerstate/timescale.md) of 1, and is rewound with [TimerStateExtensions.Rewind](/engine/7000.0/script-reference/unity/animations/timerstateextensions/rewind.md), so the cycle offset applies when the wrap mode is [WrapMode.Loop](/engine/7000.0/script-reference/unityengine/wrapmode/loop.md). The first [TimerStateExtensions.Update](/engine/7000.0/script-reference/unity/animations/timerstateextensions/update.md) advances it. To create the timer of a clip, use [Clip.ToTimerState](/engine/7000.0/script-reference/unity/animations/clip/totimerstate.md).
