BlockNode
Represents a specialized node that can only exist within a BlockNode.ContextNode.
Read time 2 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
- Inherits from: Node
- Implements: INode
public abstract class BlockNode : Node, INode
Remarks
Use block nodes to define logic or operations that are scoped within a BlockNode.ContextNode. A block node cannot be added directly to the graph; it must be a child of a valid context node type. Attempting to instantiate or add a outside of a BlockNode.ContextNode will result in invalid behavior. To limit which context types can contain a block node, use the UseWithContextAttribute.
BlockNodeProperties
Property | Description |
|---|---|
| ContextNode | The BlockNode.ContextNode that contains this block node. |
| Index | The index of this block node within the list of blocks in the context node. |