Array APIs
Addon SDK v1 retirement
The built-in Array plugin SDK instance exposes the following APIs.
- At(x, y, z)
- Retrieve an element from the array at the given X, Y and Z co-ordinates. For one or two dimensional access, pass 0 for the unused components.
- Set(x, y, z, val)
- Set an element in the array at the given X, Y and Z co-ordinates. For one or two dimensional access, pass 0 for the unused components.
- SetSize(w, h, d)
- Set the size of the array in up to three dimensions. For one or two dimensional arrays, pass 1 for the unused dimensions. (Note passing 0 for any dimension will create an array with zero elements that cannot store any data.) If the array grows, new elements have the value 0. If the array shrinks, elements are removed.
- GetWidth()
- GetHeight()
- GetDepth()
- Retrieve the current dimensions of the array.
Addon SDK Manual
Construct.net
2018-09-11
2024-05-20
You are here:
Search this manual:
This manual entry was last updated on 20 May, 2024 at 15:09