WithConnectorUI(PortConnectorUI)
Configures the connector UI shape for the port being built.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
T WithConnectorUI(PortConnectorUI connectorUI)
Parameters
The PortConnectorUI 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 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.