BypassNode

Last modified: Jun 30, 2024

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:

material.colorNode = myColor.bypass( runVoidFn() )
export {}

Constructor

new BypassNode(outputNode, callNode)
ParameterTypeDefault Value
outputNodeNode
callNodeNode

Constructs a new bypass node.

AccessorType

Properties

PropertyTypeDefault Value
isBypassNodeboolean
outputNodeNode
callNodeNode
MethodType

Extends

Node

bypass

TSL function for creating a bypass node.

ParameterTypeDefault Value
outputNodeNode
callNodeNode

Returns

BypassNode