Set Array Element
Overview
Set Array Element updates one or more elements in an Array to new values. For this, it receives the Index
of the element to update and the Value
to which it will be updated.
If the Index
is out of range for the Array, it will extend the Array up to the Index
and fill the newly created element/s with empty element/s of the data type Any.
Scope: Project, Scene, Function, Prefab.
Attributes
Inputs
Inputs
- The number of elements you wish to set the value of. Each Input element has the following Attributes:
Attribute | Type | Description |
---|---|---|
| Int | The default |
| Drop-down | The |
| Defined in the | The element whose |
Inputs
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| Array | An Array whose element/s you wish to update. |
| Int | The |
| Defined in the | An Input value that is used to replace the element whose index is specified in the |
Outputs
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. |
| Array | An Output Array whose element/s have been replaced with the desired values. |
Example Usage
See Also
Last updated