Skip to main content

Array

Arrays are ordered lists of Objects. See the guide on arrays here for a more detailed introduction.

You can create and modify the array using the Create new Array, Insert Object Into Array and Remove Object From Array.

Inputs

General

DataDescription
ItemsThis input sets the source of the array. You can for instance forward the content of a Static Array node using this input. The content of the source array will be copied to this array by default and any changes to the source array will also be copied automatically. You can control this by making a signal connection to Set, in that case the items, i.e. content of the source array, will only be copied when a signal is received on Set.
IdThis is the Id of the array, it works similair to objects and variables. It specifies the array that this node will act on via it's Id. All Array nodes with the same Id will refer to the same array of objects.
SignalDescription
FetchNormally when Id is set, the items and count outputs are immediately updated with the content of the array referenced by the Id. If you want to control how the data is updated you can connect to the Fetch signal input. Then you need to explictly send a signal here for the Array node to fetch the data. Before an array have been fetched none of the modify and set operations or source items will have any affect.

Outputs

DataDescription
IdThe Id for this Array.
ItemsThis is an output that can be connected to others that can take Array inputs, such as the Repeater node. It will hold an Noodl.Array type.
CountThe number of items in the Array.
SignalDescription
ChangedThis signal is triggered when the content of the array is changed, either by an action on this node or by some other node in the graph that operates on the same array Id.
FetchedTriggered when a Fetch action has been performed and the data is ready.