Insert Array Element
Last updated
Last updated
The Insert Array Element Node adds an element, or elements, to an Array. These are inserted at a specified index and given a specified value.
For example, an Array is populated as follows: . If the indices and are given and the values and are defined, the elements at those indices are inserted and the user is left with a new Array: .
Scope: Project, Scene, Function, Prefab.
Attribute | Type | Description |
---|---|---|
| Drop-down | Specifies each new element's |
| Drop-down | Specifies each new element's |
| Drop-down | Specifies each new element's |
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| Array | The starting Array to have element(s) added. |
| Int | The index |
| Int | The value(s) of the element(s) to be added. |
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. |
| Int | The resulting Array with the inserted element(s). |