Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AsVertical()

Configures the port to be built as a vertical port.
Read time 1 minuteLast updated 12 days ago

Definition

T AsVertical()

Returns

Type

Description

TThe current builder instance for method chaining.

Remarks

Use this method to place the port at the top (as an input) or bottom (as an output) of the node. This allows your graph to flow vertically, from top to bottom. Vertical ports can connect to horizontal ports of the same type and vice versa. The name label for the ports is not displayed on the node. The name labels are only displayed via the port tooltip. Ports are built as horizontal (i.e. left to right) by default. Call this method before IPortBuilder<T>.Build() to ensure a port is built as a vertical port. However, this method is not supported for ports on a Block node, which are always displayed horizontally.