# duration

> The duration of the transition.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.Animations](/engine/6000.7/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public float duration { get; set; }
```

### Remarks

The duration is in seconds by default. To set it to be the normalized time of the source state, set [AnimatorStateTransition.hasFixedDuration](/engine/6000.7/script-reference/unityeditor/animations/animatorstatetransition/hasfixedduration.md) to false.
