# WithDefaultValue(TData)

> Configures the default value for the option being built.

## Definition

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

## WithDefaultValue(T)

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

### Parameters

**** (T): The default value to assign to the option.

### Returns

| Type                                                                                               | Description |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [IOptionBuilder\<T>](/engine/6000.6/script-reference/unity/graphtoolkit/editor/ioptionbuilder1.md) |             |
