# IOutputPortBuilder

> Interface for defining an output port.

## Definition

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

```csharp
public interface IOutputPortBuilder : IPortBuilder<IOutputPortBuilder>
```

## Remarks

Use this interface to create an output port before you assign its data type. To assign a data type, call [IOutputPortBuilder.WithDataType](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ioutputportbuilder/withdatatype.md) or [IOutputPortBuilder.WithDataType](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ioutputportbuilder/withdatatype.md).

## Methods

| Method                                                                                                         | Description                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [WithDataType](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ioutputportbuilder/withdatatype.md)   | Configures the data type of the output port.                                                                                      |
| [WithDataTypes](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ioutputportbuilder/withdatatypes.md) | Configures the port as polymorphic, accepting any of the given types. The user picks the active type from a dropdown on the port. |

## Inheritance

**Inherited Members:**

* [IPortBuilder\<IOutputPortBuilder>.Build()](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/build.md)
* [IPortBuilder\<IOutputPortBuilder>.WithDisplayName(string)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/withdisplayname.md)
* [IPortBuilder\<IOutputPortBuilder>.WithTooltip(string)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/withtooltip.md)
* [IPortBuilder\<IOutputPortBuilder>.WithConnectorUI(PortConnectorUI)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/withconnectorui.md)
* [IPortBuilder\<IOutputPortBuilder>.AsVertical()](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/asvertical.md)
* [IPortBuilder\<IOutputPortBuilder>.WithCapacity(PortCapacity)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iportbuilder1/withcapacity.md)
