ドキュメント

Unity Engine

Unity Engine

AddSubgraphNode(Graph, Vector2)

Creates and adds a new subgraph node referencing an existing Graph asset.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public ISubgraphNode AddSubgraphNode(Graph subgraph, Vector2 position)

Parameters

subgraph

The Graph asset to reference.

position

The position of the node.

Returns

Type

Description

ISubgraphNodeThe 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.