# ClearCustomization()

> Clears all customization previously applied to the referenced state, removes any fill amount, and stops any looping animation.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor.GraphVisualization](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization.md)
* **Assembly:** UnityEditor

```csharp
public void ClearCustomization()
```

### Remarks

Resets the referenced state's accent bar to its inactive state. This call removes any fill amount previously set through [StateReference.FillAmount](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/statereference/fillamount.md) and stops any looping animation started through [GraphMotion.Play](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/graphmotion/play.md). If the current reference does not correspond to any state in the state machine, any stored visual data for that state is removed and the call has no further effect. Throws ObjectDisposedException when you access this method after you call [Context.Dispose](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/context/dispose.md) on the context.

Remove every visual override previously applied to a state and resets the referenced state's accent bar to its inactive state.

### Examples

```csharp
StateReference state = context.GetStateReference(stateID);
state.ClearCustomization();
```
