# StopAnimationMode

> Stops the Animation mode and reverts any properties that were animated while in Animation mode.

## Definition

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

## StopAnimationMode()

Stops the Animation mode and reverts any properties that were animated while in Animation mode.

```csharp
public static void StopAnimationMode()
```

### Remarks

When in Animation mode, property animations are stored by calling the SampleClip or [AnimationMode.AddPropertyModification](/engine/6000.5/script-reference/unityeditor/animationmode/addpropertymodification.md) methods. This method, [AnimationMode.StopAnimationMode](/engine/6000.5/script-reference/unityeditor/animationmode/stopanimationmode.md), reverts these property animations.

## StopAnimationMode(AnimationModeDriver)

Stops the Animation mode and reverts any properties that were animated while in Animation mode.

```csharp
public static void StopAnimationMode(AnimationModeDriver driver)
```

### Parameters

**** (\[AnimationModeDriver]\(/engine/6000.5/script-reference/unityeditor/animationmodedriver)): An [AnimationModeDriver](/engine/6000.5/script-reference/unityeditor/animationmodedriver.md) object must be specified if one was specified when the Animation mode was started ([AnimationMode.StartAnimationMode](/engine/6000.5/script-reference/unityeditor/animationmode/startanimationmode.md).)

### Remarks

When in Animation mode, property animations are stored by calling the SampleClip or [AnimationMode.AddPropertyModification](/engine/6000.5/script-reference/unityeditor/animationmode/addpropertymodification.md) methods. This method, [AnimationMode.StopAnimationMode](/engine/6000.5/script-reference/unityeditor/animationmode/stopanimationmode.md), reverts these property animations.
