# WithTooltip(string)

> Configures the tooltip text of the port being built.

## Definition

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

```csharp
T WithTooltip(string tooltip)
```

### Parameters

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

### Returns

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

### Remarks

Use this method to assign a custom tooltip description to the port. The tooltip appears in the user interface when hovering over the port name. Set the tooltip before calling [IPortBuilder\<T>.Build()](/engine/6000.5/script-reference/unity/graphtoolkit/editor/iportbuilder1/build.md). If not set, the display name and type of the port are used as a fallback in the format "DISPLAY NAME: Input of type PORT TYPE"
