Version: Unity 6.4 (6000.4)
Language : English
Implement node options
Working with graphs

Add subgraph support

Enable support for subgraphs in your graph tool.

Subgraph support lets you use one graph as a node in another graph. Use it to create reusable components and break complex graphs into smaller, more manageable pieces.

Prerequisites

Before you can add support for subgraphs, you must have a graph tool implemented. If you haven’t already implemented a graph tool, you can follow these steps:

  1. Set up the code structure for the graph.
  2. Create a graph class.

Add the option to support subgraphs

To add support for subgraphs, add GraphOptions.SupportsSubgraphs in the Graph attribute’s options parameter as follows:

   [Graph(AssetExtension, GraphOptions.SupportsSubgraphs)]

Additional resources

Implement node options
Working with graphs