Push
Adds a value at the end of an array.
Node id array/push
The Push node outputs a new array: array with value added as its last
element.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| array | Array<T> | — | generic |
| value | T | — | generic |
Outputs
| Name | Type | Notes |
|---|---|---|
| array | Array<T> | generic |
Behaviour
- A new array. The connected array is unchanged, so other nodes using it still see it without the new element.
- Nothing connected to
arraycounts as an empty array: the result holds onlyvalue.
Errors
valuemust be connected: being a generic pin, it can't be set in the property inspector.