# WithConnectorUI(PortConnectorUI)

> Configures the connector UI shape for the port being built.

## Definition

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

```csharp
T WithConnectorUI(PortConnectorUI connectorUI)
```

### Parameters

**** (\[PortConnectorUI]\(/engine/6000.6/script-reference/unity/graphtoolkit/editor/portconnectorui)): The [PortConnectorUI](/engine/6000.6/script-reference/unity/graphtoolkit/editor/portconnectorui.md) shape to use.

### Returns

| Type | Description                                       |
| ---- | ------------------------------------------------- |
| T    | The current builder instance for method chaining. |

### Remarks

Use this method to control the appearance of the port’s connector in the UI. The [PortConnectorUI](/engine/6000.6/script-reference/unity/graphtoolkit/editor/portconnectorui.md) enum provides options such as [PortConnectorUI.Circle](/engine/6000.6/script-reference/unity/graphtoolkit/editor/portconnectorui/circle.md) or [PortConnectorUI.Arrowhead](/engine/6000.6/script-reference/unity/graphtoolkit/editor/portconnectorui/arrowhead.md). These shapes help users visually distinguish between different kinds of ports or flows. This setting affects only the UI and does not impact port behavior or connectivity. Call this method before [IPortBuilder\<T>.Build()](/engine/6000.6/script-reference/unity/graphtoolkit/editor/iportbuilder1/build.md) to ensure the selected style is applied to the constructed port.
