Version: Unity 6.7 Alpha (6000.7)
Language : English
Working with graphs
Add nodes to a graph

Create a graph

Create a graph asset from a graph tool and open it in the Graph window.

A graph is an asset that you create from a graph tool built with Graph Toolkit. When you create a graph, Unity opens it in the Graph window with an empty canvas, where you add and connect nodes to build your logic.

The available graph types and their menu locations, depend on the graph tool in your project. To build a graph tool instead, refer to Implementing a graph tool.

Prerequisites

Before you create a graph, make sure your project includes a graph tool that defines at least one graph type.

Create a graph asset

To create a graph asset and open it:

  1. Go to Assets > Create, and select the graph type for your graph tool. For example, go to Assets > Create > Graph Toolkit Samples > Simple Graph. The new asset appears in the Assets section of the Project window with its name ready for you to enter.
  2. Enter a name for the graph asset.
  3. Double-click the graph asset. The Graph window opens with an empty canvas.

After the Graph window opens, you can add and connect nodes to build your graph.

Additional resources

Working with graphs
Add nodes to a graph