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)| Parameter | Type | Default Value |
|---|---|---|
| outputNode | Node | — |
| callNode | Node | — |
Constructs a new bypass node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| isBypassNode | boolean | — | |
| outputNode | Node | — | |
| callNode | Node | — | |
| Method | Type | |
|---|---|---|
| generateNodeType | (builder: any) => string | |
| generate | (builder: any) => null | string | Node | |
Extends
NodeTSL function for creating a bypass node.
| Parameter | Type | Default Value |
|---|---|---|
| outputNode | Node | — |
| callNode | Node | — |
Returns
BypassNode