# wrapMode

> Wrapping mode of the animation.

## Definition

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

```csharp
public WrapMode wrapMode { get; set; }
```

### Remarks

By default wrapMode is initialized to the value set in the [Animation component's](/engine/6000.7/manual/animation-section/animation-legacy/class-animation.md) wrap mode.

### Examples

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

public class ExampleScript : MonoBehaviour
{
    public Animation anim;

    void Start()
    {
        // Set the wrap mode of the walk animation to loop
        anim["Walk"].wrapMode = WrapMode.Loop;
    }
}
```
