Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PortDirection

Specifies the direction of a port in the graph.
Read time 1 minuteLast updated 7 days ago

Definition

[Flags]public enum PortDirection

Remarks

Use PortDirection to indicate whether a port receives or sends information. This enum supports bitwise operations which allows for combinations of values, although most ports are either PortDirection.Input or PortDirection.Output. The direction affects how the port is used in the graph. PortDirection.Input ports receive connections and typically appear on the left side of a node. PortDirection.Output ports initiate connections and typically appear on the right side of a node. Use PortDirection.None when a port has no fixed direction.

Fields

Value

Description

InputThe port receives information. It accepts connections from output ports.
NoneThe port does not have a fixed direction. It may receive or send information.
OutputThe port sends information. It creates connections to input ports.