Version: Unity 6.7 Alpha (6000.7)
Language : English
Working with graphs
Connect nodes in your graphs

Add nodes to a graph

Add standard, context, and block nodes to a graph and connect them.

Nodes are the fundamental building blocks of any graph. To build your graph you need to add nodes to it and connect them. There are three types of nodes you can add to a graph: standard nodes, context nodes, and block nodes.

Prerequisites

Before you can add nodes to a graph, you need to create a graph instance. If you haven’t done this yet, follow the instructions in Implement a graph tool.

Add a standard node to your graph

To add a standard node to your graph:

  1. Right-click the graph canvas, and select Add Node to open the Add a graph node window.
  2. Navigate to the Nodes category.
  3. Double-click the node name to add it to the graph.

The node appears on the canvas. You can move it, remove it, or connect it to other nodes.

Add a context node to your graph

To add a context node to the graph:

  1. Right-click the graph canvas, and select Add Node to open the Add a graph node window.
  2. Navigate to the Contexts category.
  3. Double-click to add the context node to the graph.

The context node appears on the canvas. It behaves like any other node in the graph. You can move it, remove it, or connect it to other nodes.

A new context node doesn’t contain any blocks. Follow the steps in Add a block node to a context node to add blocks to the context node.

Add a block node to a context node

To add a block node inside a context node:

  1. In the context node, select Add a Block. The Add a graph node window opens and displays all the blocks you can add to the context node.
  2. Double-click the block node you want to add to the context node.

After you add a block node, you can remove or connect a block node the same way as other nodes.

Additional resources

Working with graphs
Connect nodes in your graphs