docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum PortDirection

    Specifies the direction of a port in the graph.

    Namespace: Unity.GraphToolkit.Editor
    Assembly: Unity.GraphToolkit.Common.Editor.dll
    Syntax
    [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 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.

    Fields

    Name Description
    Input

    The port receives information. It accepts connections from output ports.

    None

    The port does not have a fixed direction. It may receive or send information.

    Output

    The port sends information. It creates connections to input ports.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)