Store copied frames into an array
Is there any way to store textures returned from the copyFrame() function into an array? I've tried doing so, but when I go to place the texture onto a material, I get an error that reads,
- Error: Argument -1: Value is not a native object
- at [anon] () native strict preventsyield
- at [anon] (Scripts/Init:17) preventsyield
I've come to the conclusion that the copyFrame() function does not return an actual Asset.Texture object, but another, incomplete version of that class that can be stored temporarily in memory.

I have a feeling that this could do with some unimplemented javascript, or api incompatibility, but I'm not sure. These things are extremely difficult to do because your documentation is missing several important details, such as the Asset.Texture's properties and contents.
If you would like to see my code, here it is.
Okay. Sorry for the confusion. I've fixed the problem. It was a simple error. When I inserted the frames into an array, I did it like:
frameNumber[frameNumber]; <--- frameNumber isn't an array, it's an integer.
instead of
frameBuffer[frameNumber]; <--- actually works lol.
Works like a charm now.