gdext
gdext copied to clipboard
Converting Typed Arrays to Variant Arrays Panics
Passing a typed Array
from Godot and attempting to convert it to a VariantArray
currently panics (in a very unclear manner).
This is unintuitive and unhelpful behavior, and makes dealing with Variants that could be typed Arrays extremely annoying, as you'd need to check against every possible contained type.
Attached is a minimum viable reproduction that shows off the issue well.
I apologize if there's an intended way around this already (or if it's simply not intended), I wasn't able to find any workaround that didn't involve matching to each contained type.