A list component holds elements in a specific order. The type of element that the list can store is defined by the Element Type. List is dynamic sized.
Add Value / Vector / Object | Add an element to the index of the List |
Operation | Execute an operation of the List through a link. Remove First / Remove Last / Remove All / Shuffle / Reverse. |
Edit Intial Values | Set what objects or data are in the list when the game starts | |
Execute | Executes the Node | |
↳ On Start | Executes the Node at the start of the game | |
Enabled | Enable or disable the node. Disabled Nodes cannot be executed | |
Allow Duplicates | Determines if the list allows duplicate values | |
List Type | Switch the List type between one- and two-dimensional lists. - 2D List is essentially a list of lists and adds the "Index Y” and “Width” options. |
|
Element Type | Stored element type. Can be values, vectors or objects. | |
Add New Elements To | Position to which new elements are added to. Beginning / End / Index. | |
Max Size | Maximum amount of elements for the List. | |
Index | Starting index for the List. | |
Run Action | Runs certain action when executed through this link | |
Seed | Set a seed to use when running the “Shuffle” action | |
Get Value at Index | Input | Input an index value to fetch an entry on the List |
Output | Outputs whatever the List is storing in the Input Index | |
Get Last Index | Input | Executes Get Last Index output |
Output | Outputs the index value of the last item on the list (list length) | |
For Each Value | Input | Execute For Each Value output |
Output | Executes the link as many times as there are values in the list. | |
Contains | Input | Input an index value to check if the list contains that index |
Output | Outputs True or False (1 or 0) based on if the List contains the input index |
Remove First | Remove the first item on the list |
Remove Last | Remove the last item on the list |
Remove All | Remove all objects from the list |
Shuffle | Randomize the order of the list |
Reverse | Reverse the order of the list |
Remove Index | Remove the set index. This shifts all items in the list. |
Swapout Index | Replace the item at the set Index |
Insert Index | Insert an item at the set Index |
Sort | Sort the list. Uses Distance Pivot if list type is Object list |
Clear Index | Clear the set index. The value at index will be set to 0 keeping all other list items on their old indexes. |
Set All Values to Indexed | Sets all values to the value at set index |
Fill From Index | Fills the list from the set index to max size |
Fill Ascending From Index | Fills the list from set index to first index |
Remove Destroyed Objects | Remove items from the list that have been destroyed from the game world |
Here's a link to the hype that shows how to implement and use the List node: