ZGameEditor Documentation
Community |
DefineArrayDefineArrayDefines an array with values that can be used in expressions. Note: Range checking of arrays are only performed inside the designer tool, so be sure to test your game that use arrays in preview mode before generating a exe-file. PropertiesNameThe name of the array. This is the name that can be used in expressions. DimensionsThis property can be set to one of the following values:
TypeThe data type of the array elements.
SizeDim1Number of elements in the first dimension. For instance a SizeDime1 value of 2 with dimensions set to One defines an array with two elements that can be accessed with index 0 and 1. This value can only be set at runtime. SizeDim2Number of elements in the second dimension. This value can only be set at runtime. SizeDim3Number of elements in the third dimension. This value can only be set at runtime. PersistentWith a persistent array, values are stored in your project file, and thus can contain data other than 0 upon start. Values can then be changed with code during runtime. When editing a persistent array, the values can be copied to a text editor, edited, and pasted back into the component. |