# 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 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](/engine/6000.7/script-reference/unity/graphtoolkit/editor/istateoptionbuilder.md) | The current builder instance for method chaining. |
