# ClearCustomization()

> Clears all customization previously applied to the referenced transition.

## 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

If the current reference does not correspond to any transition in the state machine, any stored visual data for that transition is removed and the call has no further effect. Calling this method has no effect when the [TransitionReference](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/transitionreference.md) has no associated [TransitionReference.Context](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/transitionreference/context.md), such as when it is `default`. 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 transition and restore the default drawing in the state machine canvas.

### Examples

```csharp
TransitionReference transitionRef = context.GetTransitionReference(transitionID);
transitionRef.ClearCustomization();
```
