CreateLocalSubgraphNode
Creates and adds a new local subgraph node.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
CreateLocalSubgraphNode(Type, string, Vector2)
Creates and adds a new local subgraph node.
public ISubgraphNode CreateLocalSubgraphNode(Type subgraphType, string name, Vector2 position)
Parameters
Returns
Type | Description |
|---|---|
| ISubgraphNode | The newly created subgraph node. |
Remarks
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.
CreateLocalSubgraphNode<T>(string, Vector2)
Creates and adds a new local subgraph node.
public ISubgraphNode CreateLocalSubgraphNode<TSubGraph>(string name, Vector2 position) where TSubGraph : Graph, new()
Parameters
Returns
Type | Description |
|---|---|
| ISubgraphNode | The newly created subgraph node. |
Remarks
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.