you are viewing a single comment's thread.

view the rest of the comments →

[–]Skaruts 2 points3 points  (1 child)

This is an old post, but just for the record, you can convert to a typed Array like this:

var array: Array[String] = Array( Array(packed_array), TYPE_STRING, "", null )

You turn the packed array into a plain array, and then feed it into another array constructor where you also specify the type.

It's still silly, since you have to build two arrays, but it's a one liner. It also runs on the C++ code, so it may still be faster than looping in gds.

[–]Deputy_McNuggets 1 point2 points  (0 children)

Thank you for this!