Rasagar/Library/PackageCache/com.unity.visualscripting/Documentation~/vs-creating-connections.md
2024-08-26 23:07:20 +03:00

1.6 KiB

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

  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.