# WithDisplayName(string)

> Configures the display name of the option being built.

## Definition

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

```csharp
IOptionBuilder WithDisplayName(string displayName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The display name to assign to the option.

### Returns

| Type                                                                                          | Description |
| --------------------------------------------------------------------------------------------- | ----------- |
| [IOptionBuilder](/engine/6000.5/script-reference/unity/graphtoolkit/editor/ioptionbuilder.md) |             |

### Remarks

The display name doesn't affect functionality; it can improve usability and readability. If not set explicitly using this method, the name passed during creation (calling [Node.IOptionDefinitionContext.AddOption](/engine/6000.5/script-reference/unity/graphtoolkit/editor/node/ioptiondefinitioncontext/addoption.md)) is used as the default display name.
