Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateLocalSubgraphNode

Creates and adds a new local subgraph node.
Read time 1 minuteLast updated 7 days ago

Definition

CreateLocalSubgraphNode(Type, string, Vector2)

Creates and adds a new local subgraph node.
public ISubgraphNode CreateLocalSubgraphNode(Type subgraphType, string name, Vector2 position)

Parameters

subgraphType

The type of the subgraph to create.

name

The name of the local subgraph.

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.

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

name

The name of the local subgraph.

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.