# legacy

> Set to true if the AnimationClip will be used with the Legacy Animation component ( instead of the Animator ).

## Definition

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

```csharp
public bool legacy { get; set; }
```

### Examples

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

public class animFov : MonoBehaviour
{
    void Start()
    {
        AnimationClip fovc = new AnimationClip();
        AnimationCurve curve = AnimationCurve.Linear(0.0f, 60.0f, 10.0f, 90.0f);
        fovc.SetCurve("", typeof(Camera), "field of view", curve);
        fovc.legacy = true;
        GetComponent<Animation>().AddClip(fovc, "animfov");

        GetComponent<Animation>().Play("animfov");
    }
}
```
