# PlayMode

> Used by Animation.Play function.

## Definition

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

```csharp
public enum PlayMode
```

## Fields

| Value                                                                                  | Description                                                                                                |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [StopAll](/engine/6000.0/script-reference/unityengine/playmode/stopall.md)             | Will stop all animations that were started with this component before playing.                             |
| [StopSameLayer](/engine/6000.0/script-reference/unityengine/playmode/stopsamelayer.md) | Will stop all animations that were started in the same layer. This is the default when playing animations. |
