AddNode(Node)
Adds a node to the Graph.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public void AddNode(Node node)
Parameters
The node to add.
Remarks
If the node is already in this graph, this method does nothing. If the node is currently in another graph, it will be removed from that graph and added to this one. Enclose this method with Graph.UndoBeginRecordGraph and Graph.UndoEndRecordGraph to add this operation to the undo stack and to update the graph view with the changes.