# clip

> Returns the animation clip played by the Animator.

## Definition

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

```csharp
public AnimationClip clip { get; }
```

### Examples

```csharp
//Create a GameObject and attach an Animator component (Click the <b>Add Component</b> button in the Inspector of the GameObject and go to <b>Miscellaneous</b>><b>Animator</b>). Set up the Animator how you would like.
//Attach this script to the GameObject

//This script outputs the current clip from the Animator to the console

using UnityEngine;

public class Example : MonoBehaviour
{
    Animator m_Animator;
    AnimatorClipInfo[] m_AnimatorClipInfo;

    void Start()
    {
        //Fetch the Animator component from the GameObject
        m_Animator = GetComponent<Animator>();
        //Get the animator clip information from the Animator Controller
        m_AnimatorClipInfo = m_Animator.GetCurrentAnimatorClipInfo(0);
        //Output the name of the starting clip
        Debug.Log("Starting clip : " + m_AnimatorClipInfo[0].clip);
    }
}
```
