Set List Data


The Set List Data Node allows the user to set the data of a List in a Scene2D.

This Node requires that the JSON data is in Array format. Refer to the example at the bottom of the page.

Scope: Scene, Function, Prefab.



Pulse Input (►)


A standard Input Pulse, to trigger the execution of the Node.

Object ID


The List that the user wishes to set the data for.

List Data


The JSON list data in Array format.



Pulse Output (►)


A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution.


For correct formatting, start with the desired JSON file. Here we have an example:

        "icon": "Users/",
        "text": "you collected"
        "icon": "Users/",
        "text": "over 9000"
        "icon": "Users/",
        "text": "overhours"

This needs to be placed into an Array. Go into the Logic Editor and populate an Array with the elements of the desired JSON using your preferred method.

The full Array would look like this if outputted to the Console:

[ { icon:Users/, text:you collected }, { icon:Users/, text:over 9000 }, { icon:Users/, text:overhours } ]

Each element is encapsulated by {} symbols, like in the JSON. The "" are not necessary here. Simply use an A:B format with a comma separating the lines of each element.

The resulting List should look like this in the Player:

See Also

Last updated