Skip to content

Converting Typed Arrays to Variant Arrays Panics #727

Open
@Pspritechologist

Description

@Pspritechologist

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.

array_test.zip

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: coreCore componentsfeatureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions