# Opacity

> The opacity multiplier applied to the referenced wire.

## Definition

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

```csharp
public float Opacity { get; set; }
```

### Remarks

The opacity multiplier is clamped to the \[0, 1] range when set. Setting a new value overwrites any existing opacity override for that wire. Setting this property has no effect when the [WireReference](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference.md) has no associated [WireReference.Context](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference/context.md), such as when it is `default`. Throws ObjectDisposedException when you access this method after you call [Context.Dispose](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/context/dispose.md) on the context.

Reduce the opacity of a wire to draw it semi-transparently in the graph canvas, for example to de-emphasize inactive connections.

### Examples

```csharp
WireReference wire = context.GetWireReference(outputPortID, inputPortID);
wire.Opacity = 0.5f;
```
