# ClearAllVisualization()

> Clears all visualization data associated with this context.

## Definition

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

```csharp
public void ClearAllVisualization()
```

### Remarks

Removes any visuals on the graph canvas that were added through this context. The context itself is not disposed and remains valid for setting new visualization data.

### Examples

```csharp
// Set up a context and apply visualization changes to a few nodes.
Context context = Registry.CreateVisualizationContext(graphGuid);

NodeReference firstNode = context.GetNodeReference(firstNodeID);
firstNode.FillAmount = 75f;

NodeReference secondNode = context.GetNodeReference(secondNodeID);
context.Motion.Play(secondNode, animationSpeed: 1f);

// Reset all visualization between runs without disposing the context.
// Fill amounts and animations applied above are cleared; the context can be reused.
context.ClearAllVisualization();
```
