WithCapacity(PortCapacity)
Configures the connection capacity of the port being built.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
T WithCapacity(PortCapacity capacity)
Parameters
The number of connections the port can accept, represented by PortCapacity.
Returns
Type | Description |
|---|---|
| T | The 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.