Capítulo 424 de 859

Chapter 424: InspectorNode

Core Idea

InspectorNode is a wrapper node that allows inspection of node values during rendering. It can be used to debug or analyze node outputs in the rendering pipeline.

Key Concepts

  • type: Returns the type of the node.

Reference Tables

Constructor

Signature
`new InspectorNode( node : Node, name : string, callback : function

Properties

PropertyDescription
.typeReturns the type of the node.

Methods

MethodDescription
.generateNodeType( builder : NodeBuilder ) : stringReturns the type of the wrapped node.
.getName() : stringReturns the name of the inspector node.
.setup( builder : NodeBuilder ) : NodeSets up the inspector node.
.update( frame : NodeFrame )Updates the inspector node, allowing inspection of the wrapped node.

Key Takeaways

  1. InspectorNode extends: EventDispatcher → Node
  2. Most relevant properties: type.
  3. Key methods: generateNodeType, getName, setup, update.

Connects To