# GetConditionReference(Hash128)

> Returns a ConditionReference that identifies the condition with the given ID within this visualization context.

## Definition

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

```csharp
public ConditionReference GetConditionReference(Hash128 conditionID)
```

### Parameters

**** (Hash128): The unique identifier of the condition to reference.

### Returns

| Type                                                                                                                     | Description                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ConditionReference](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/conditionreference.md) | A [ConditionReference](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/conditionreference.md) that targets the condition identified by `conditionID` within this [Context](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/context.md). |

### Remarks

The returned [ConditionReference](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/conditionreference.md) is only meaningful for this [Context](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/context.md) and references the condition by its ID rather than by direct lookup. The condition doesn't need to exist in the current graph at the time of this call. Throws ObjectDisposedException when you access this method after you call [Context.Dispose](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/context/dispose.md) on the context. Throws ArgumentException when you provide an invalid `conditionID`.

### Examples

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