ArrayParser.setSize() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
size
{int}
No
value_default?
{any}
Yes

Returns

Not applicable.

Description

Set the number of elements in the array to the specified one. If the specified size is lower than current, values from the end will be removed. If the specified size is higher than current, values in new positions will be set to the specified default value or {undefined} if unspecified.

⚠️ **GitHub.com Fallback** ⚠️