# loop

> Determines whether the animation clip should loop continuously.

## Definition

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

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

### Remarks

When set to true, the animation clip seamlessly repeats from the beginning when it reaches the end. This is useful for cyclical animations like walking, running, or idle animations.

When false, the animation plays once and stops at the last frame. This is typically used for one-time actions like attacks, jumps, or cutscene animations.

**Note**: This property works in conjunction with [ModelImporterClipAnimation.loopTime](/engine/6000.7/script-reference/unityeditor/modelimporterclipanimation/looptime.md) and [ModelImporterClipAnimation.loopPose](/engine/6000.7/script-reference/unityeditor/modelimporterclipanimation/looppose.md) to control different aspects of looping behavior.
