# WithDefaultValue(object)

> 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(Object)

```csharp
IStateOptionBuilder WithDefaultValue(object defaultValue)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The default value 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. |
