Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

PortDirection

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Specifies the direction of a port in the graph.

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 Input or Output. The direction affects how the port is used in the graph. Input ports receive connections and typically appear on the left side of a node. Output ports initiate connections and typically appear on the right side of a node. Use None when a port has no fixed direction.

Properties

Property Description
None The port does not have a fixed direction. It may receive or send information.
Input The port receives information. It accepts connections from output ports.
Output The port sends information. It creates connections to input ports.