# Icon

> The icon override for the referenced condition, or null when no icon override is applied.

## Definition

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

```csharp
public Texture2D Icon { get; set; }
```

### Remarks

Getting this property returns the override set through this reference, or `null` when none is set. Read [ICondition.Icon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/icondition/icon.md) for the icon the condition itself authored. Setting a new value overwrites any existing icon override for that condition; it does not change the condition's own [ICondition.Icon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/icondition/icon.md). Setting `null` removes the override, so the condition's row shows the condition's own icon again. Reading or setting this property has no effect when the [ConditionReference](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/conditionreference.md) has no associated [ConditionReference.Context](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/conditionreference/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.

Set this to one of [DebugStyles.TrueIcon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/trueicon.md), [DebugStyles.FalseIcon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/falseicon.md), or [DebugStyles.PendingIcon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/pendingicon.md) to indicate the condition's evaluation status, or to a custom icon.

### Examples

```csharp
ConditionReference condition = context.GetConditionReference(conditionID);
condition.Icon = DebugStyles.PendingIcon;
```
