# WithDefaultValue(TData)

> Configures the default value for the option being built.

## Definition

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

## WithDefaultValue(T)

```csharp
IStateOptionBuilder<in TData> WithDefaultValue(TData defaultValue)
```

### Parameters

**** (T): The default value 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. |
