CreateLocalSubgraphNode
Creates and adds a new local subgraph node.
읽는 시간 1분최근 업데이트: 2달 전
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.