# PortPreviewEnabled

> Whether the port preview feature is enabled for this visualization context. Enabled by default.

## Definition

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

```csharp
public bool PortPreviewEnabled { get; set; }
```

### Remarks

When enabled, the port previews are visible in the graph canvas and can be set and cleared using [PortReference.SetPreview](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/portreference/setpreview.md) and [PortReference.ClearPreview](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/portreference/clearpreview.md). When disabled, the port previews are hidden in the graph canvas. Throws ObjectDisposedException when you access this property after you call [Context.Dispose](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/context/dispose.md) on the context.
