# WithDefaultValue(TData)

> Configures a default value of type TData to the input port.

## Definition

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

## WithDefaultValue(T)

```csharp
IInputPortBuilder<TData> WithDefaultValue(TData defaultValue)
```

### Parameters

**** (T): The default value of type `TData`.

### Returns

| Type                                                                                                     | Description                                              |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [IInputPortBuilder\<T>](/engine/6000.5/script-reference/unity/graphtoolkit/editor/iinputportbuilder1.md) | An input port builder configured with the default value. |
