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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961