# WidthOverride

> The line width override applied to the referenced transition.

## Definition

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

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

### Remarks

Setting the value to 0 removes the width override on the transition. Setting a new value overwrites any existing width override for that transition. On a state-to-state transition, this property sets the width of the transition's wire and of the border of its arrow. On a self transition, this property sets the width of the transition arrow's border. Getting or setting this property has no effect, and getting it returns `0f`, 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 property after you call [Context.Dispose](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/context/dispose.md) on the context.

Override the line width of a transition so it appears thicker than the default thickness.

### Examples

```csharp
TransitionReference transitionRef = context.GetTransitionReference(transitionID);
transitionRef.WidthOverride = 4f;
```
