Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WithCapacity(PortCapacity)

Configures the connection capacity of the port being built.
Read time 1 minuteLast updated 12 days ago

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.