기술 자료

Unity Engine

Unity Engine

WithCapacity(PortCapacity)

Configures the connection capacity of the port being built.
읽는 시간 1분최근 업데이트: 2달 전

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.