# WithDisplayName(string)

> Configures the display name of the port being built.

## Definition

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

```csharp
T WithDisplayName(string displayName)
```

### Parameters

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

### Returns

| Type | Description                                       |
| ---- | ------------------------------------------------- |
| T    | The current builder instance for method chaining. |

### Remarks

Use this method to assign a custom label to the port. This label appears in the user interface next to the port and helps clarify its purpose. Set the display name before calling [IPortBuilder\<T>.Build()](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/build.md). The value does not affect functionality but improves usability and readability. If not set, the port name passed during creation (see: [Node.IPortDefinitionContext.AddInputPort](/engine/6000.7/script-reference/unity/graphtoolkit/editor/node/iportdefinitioncontext/addinputport.md) and [Node.IPortDefinitionContext.AddOutputPort](/engine/6000.7/script-reference/unity/graphtoolkit/editor/node/iportdefinitioncontext/addoutputport.md)) is used as the fallback display name.
