Capítulo 391 de 859

Chapter 391: BypassNode

Core Idea

The class generates the code of a given node but returns another node in the output. This can be used to call a method or node that does not return a value, i.e. type void on an input where returning a value is required. Example:

Key Concepts

  • callNode : Node: The call node.
  • isBypassNode : boolean (readonly): This flag can be used for type testing.
  • outputNode : Node: The output node.

Code Examples

material.colorNode = myColor.bypass( runVoidFn() )
  • What it demonstrates: Typical usage of BypassNode.

Reference Tables

Constructor

Signature
new BypassNode( outputNode : Node, callNode : Node )

Properties

PropertyDescription
.callNode : NodeThe call node.
.isBypassNode : boolean (readonly)This flag can be used for type testing.
.outputNode : NodeThe output node.

Key Takeaways

  1. BypassNode extends: EventDispatcher → Node
  2. Most relevant properties: callNode, isBypassNode, outputNode.

Connects To