Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ContextNode

A specialized node that serves as a dynamic container for compatible BlockNode instances.
Read time 3 minutesLast updated 6 days ago

Definition

public abstract class ContextNode : Node, INode

Remarks

Context nodes are node structures that group and control a sequence of BlockNode instances. A ContextNode owns a list of BlockNodes. These blocks cannot exist independently in the graph and must always be children of a context node.
To control which block node types are valid for a specific context node type, use the UseWithContextAttribute on the corresponding BlockNode class.

Properties

Property

Description

BlockCountThe number of BlockNodes contained in this context node.
BlockNodesAn
IEnumerable
collection of the BlockNodes contained in this context node.

Methods

Method

Description

AddBlockNodeAdds an existing BlockNode to this context node.
ClearBlockNodesRemoves all BlockNodes from this context node.
CreateBlockNodeCreates and inserts a new BlockNode into this context node.
GetBlockRetrieves the BlockNode at the specified index in the context node's block list.
InsertBlockNodeInserts an existing BlockNode at the specified index in this context node.
RemoveBlockNodeRemoves the specified BlockNode from this context node.

Inheritance