ドキュメント

Unity Engine

Unity Engine

IPortBuilder<T>

Base interface representing a generic port builder. Used in a builder pattern to configure and construct ports.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.
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.