# WithTooltip(string)

> Configures the tooltip text for 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> WithTooltip(string tooltip)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The tooltip text 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. |
