文档

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.