Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WithConnectorUI(PortConnectorUI)

Configures the connector UI shape for the port being built.
Read time 1 minuteLast updated 10 days ago

Definition

T WithConnectorUI(PortConnectorUI connectorUI)

Parameters

connectorUI

The PortConnectorUI shape to use.

Returns

Type

Description

TThe current builder instance for method chaining.

Remarks

Use this method to control the appearance of the port’s connector in the UI. The PortConnectorUI enum provides options such as PortConnectorUI.Circle or PortConnectorUI.Arrowhead. 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() to ensure the selected style is applied to the constructed port.