Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IPortBuilder<T>

Base interface representing a generic port builder. Used in a builder pattern to configure and construct ports.
Read time 1 minuteLast updated 6 days ago

Definition

public interface IPortBuilder<T>

Remarks

This interface supports a builder pattern, where each method returns the builder instance, allowing chained configuration of port settings before final construction using IPortBuilder<T>.Build(). Use derived interfaces such as IInputPortBuilder or IOutputPortBuilder to build specific port types.

Examples

context.AddInputPort("MyInput") .WithDataType(typeof(int)) .WithDisplayName("Input Value") .Build();

Methods

Method

Description

AsVerticalConfigures the port to be built as a vertical port.
BuildBuilds and returns the final IPort instance based on the current configuration of the builder.
WithCapacityConfigures the connection capacity of the port being built.
WithConnectorUIConfigures the connector UI shape for the port being built.
WithDisplayNameConfigures the display name of the port being built.
WithTooltipConfigures the tooltip text of the port being built.