Instantiate context nodes in your graph
Important
This experimental package is deprecated and no longer supported as of Unity version 6.4. Unity Graph Toolkit is included as a module in the Editor as of Unity version 6.4 and later, and does not require a separate installation. You can find the samples and accompanying documentation in the Unity Graph Toolkit samples package com.unity.graphtoolkit-samples.
This procedure assumes you have already implemented a context node in your graph tool, as described in Implement a context node.
To add a context node:
- Right-click on the graph canvas and select
Create node...to open the graph item library window. - Navigate to the Contexts category.
- Double-click to add your desired context node to your graph.
The added context node behaves like any other node in the graph. You can move it, disable it, remove it, or connect it to other nodes or variables.
A new context node doesn't contain any blocks. The user needs to add these afterward.
Follow the steps in Instantiate and manage block nodes to add blocks to your context node.