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 need to create a graph class. If you haven’t done this yet, follow the instructions in Implement a graph tool.

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