GetNode(int)
Retrieves a node defined in the graph by its index.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public INode GetNode(int index)
Parameters
The zero-based index of the node to retrieve.
Returns
Remarks
Use this method to access a node based on its creation order in the graph. The index is zero-based and must be within range (see: Graph.NodeCount).
The list includes:
-
Your own Nodes
It excludes BlockNodes, which are only accessible through their parent ContextNode.