# WithDisplayName(string)

> Configures the display name of the option being built.

## Definition

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

```csharp
IStateOptionBuilder<in TData> WithDisplayName(string displayName)
```

### Parameters

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

### Returns

| Type                                                                                                         | Description                                       |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------- |
| [IStateOptionBuilder\<T>](/engine/6000.7/script-reference/unity/graphtoolkit/editor/istateoptionbuilder1.md) | The current builder instance for method chaining. |

### 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 [State.IOptionDefinitionContext.AddOption](/engine/6000.7/script-reference/unity/graphtoolkit/editor/state/ioptiondefinitioncontext/addoption.md)) is used as the default display name.
