When picking an array and logging it, I'm not surprised it is an object, but I am surprised that I don't see the actual array of values anywhere on the object. Am I missing something?
I am getting the instance like this: runtime.objects.Array.getFirstPickedInstance();
Which is inside an event, and is finding the instance of the array I want.
The main reason right now that I am wanting to work with the array in both Events and JavaScript is the built-in Save function. As if I only store the array in my script it won't be saved.
I was hoping to grab the actual array so I could filter/map/reduce/etc integrating my events and scripts. I'm not wanting to loop through width and height and use the getAt() for each value. Seems to defeat the purpose (conciseness, readability, etc). I guess I could make a global function to translates arrays to/from Construct/JavaScript - but just surprised at this.
Is JSON the same? Could use JSON instead of an array . . .