# length

> The length of the animation clip in seconds.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public float length { get; }
```

### Examples

```csharp
using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour
{
    public Animation anim;

    void Start()
    {
        // Print the length of the walk animation in seconds
        print(anim["Walk"].length);
    }
}
```
