ArrayNode

Last modified: Mar 5, 2026

ArrayNode represents a collection of nodes, typically created using the array function.

const colors = array( [
	vec3( 1, 0, 0 ),
	vec3( 0, 1, 0 ),
	vec3( 0, 0, 1 )
] );

const redColor = tintColors.element( 0 );
export {}

Constructor

new ArrayNode(nodeType, count, values?)
ParameterTypeDefault Value
nodeTypenull | string
countnumber
values?null | Array<Node>null

Constructs a new array node.

AccessorType

Properties

PropertyTypeDefault Value
countnumber
valuesnull | Array<Node>
isArrayNodeboolean
MethodType

Extends

TempNode

array

TSL function for creating an array node.

ParameterTypeDefault Value
params...Array<any>

Returns

ArrayNode