# WithDefaultValue(object)

> Configures the default value for the option being built.

## Definition

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

## WithDefaultValue(Object)

```csharp
IOptionBuilder WithDefaultValue(object defaultValue)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The default value to assign to the option.

### Returns

| Type                                                                                          | Description |
| --------------------------------------------------------------------------------------------- | ----------- |
| [IOptionBuilder](/engine/6000.5/script-reference/unity/graphtoolkit/editor/ioptionbuilder.md) |             |
