# GetNodes(List<IVariableNode>)

> Retrieves all variable nodes associated with this variable.

## Definition

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

```csharp
void GetNodes(List<IVariableNode> nodes)
```

### Parameters

**** (\[List\<IVariableNode>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list to populate with variable nodes. Must not be `null`; otherwise, an ArgumentException is thrown.

### Remarks

This method clears the provided list and populates it with all variable nodes in the graph that reference this variable.
