# GetNodeOptionByName(string)

> Retrieves a node option using its name.

## Definition

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

```csharp
INodeOption GetNodeOptionByName(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The unique name of the node option.

### Returns

| Type                                                                                    | Description                                                        |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [INodeOption](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inodeoption.md) | The node option with the specified name, or null if none is found. |

### Remarks

The node option's name is unique within the node's input ports and node options.
