docs.unity3d.com
    Show / Hide Table of Contents

    Port

    Description

    A Port defines an input or output on a Node. Connecting Edges to a Port allows data to flow through the Shader Graph node network.

    Each Port has a Data Type which defines what edges can be connected to it. Each data type has an associated color for identifying its type.

    Only one edge can be connected to any input Port but multiple edges can be connected to an output Port.

    You can open a contextual Create Node Menu by dragging an edge from a Port with left mouse button and releasing it in an empty area of the workspace.

    Default Inputs

    Each Input Port, a Port on the left side of a node implying that it is for inputting data into the node, has a Default Input. This appears as a small field connected to the Port when there is no edge connected. This field will display an input for the ports data type unless the Port has a Port Binding. If a Port does have a port binding the default input field might display a special field, such as a dropdown for selecting UV channels, or just a label to help you understand the intended input, such as coordinate space labels for geometry data.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023