Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

IPortBuilder<T0>.WithConnectorUI

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public T WithConnectorUI(Unity.GraphToolkit.Editor.PortConnectorUI connectorUI);

Parameters

Parameter Description
connectorUI The PortConnectorUI shape to use.

Returns

T The current builder instance for method chaining.

Description

Configures the connector UI shape for the port being built.

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_1.Build to ensure the selected style is applied to the constructed port.