Set List Data
Last updated
Last updated
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.
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| ObjectID | The List that the user wishes to set the data for. |
| Array | The JSON list data in Array format. |
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | 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:
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:
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: