ドキュメント

Unity Engine

Unity Engine

WithCapacity(PortCapacity)

Configures the connection capacity of the port being built.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

T WithCapacity(PortCapacity capacity)

Parameters

capacity

The number of connections the port can accept, represented by PortCapacity.

Returns

Type

Description

TThe current builder instance for method chaining.

Remarks

Use this method to control how many connections a port can accept. By default, input ports use PortCapacity.Single and output ports use PortCapacity.Multi. Call this method before IPortBuilder<T>.Build() to ensure the capacity is applied.