docs.unity.cn

Visual Scripting 1.7.8

    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

    Once 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.

    In This Article
    • Delete a connection
    • Next steps
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, May 10, 2022
    Terms of use