docs.unity3d.com
    Show / Hide Table of Contents

    Connect nodes in a Script Graph

    Connections control the flow of logic and data in a Script Graph's nodes.

    To connect nodes in a Script Graph:

    1. With a Script Graph open in the Graph window, either find an existing node where you want to make a connection, or add a new node to your Script Graph.

    2. Do one of the following:

      • Connect to a new node.
      • Connect to an existing node.

    Connect to a new node

    1. Select a port and point to a blank area in your graph to start the connection.

    2. Select again to open the fuzzy finder.

    3. Select an entry to automatically add that node at the end of your connection.

    Connect to an existing node

    1. Select a port and point to an existing port on another node.

    2. Select the port to make the connection.

    An image of a Script Graph in the Graph Editor, with multiple nodes connected to each other to create a flow of logic.

    Delete a connection

    To delete a connection between two nodes:

    1. With a Script Graph open in the Graph window, right-click the port at either end of a connection.

    Visual Scripting deletes the connection.

    Next steps

    After you've connected nodes together, you can continue to add nodes to your Script Graph. You can also create and add variables, create node groups, or add a Subgraph.

    You can also add a Sticky Note to add comments to a graph.

    In This Article
    • Delete a connection
    • Next steps
    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