Skip to content

Tuples don't get ReflectFromReflect type data registered in GetTypeRegistration #17981

Open
@makspll

Description

@makspll

Bevy version

0.15.1

Summary

i.e.

registry.register_type::<(usize,usize)>();

will not register a ReflectFromReflect type data against the tuple.

for it to take, you have to manually do it via:

registry.register_type_data::<usize, ReflectFromReflect>

This means if I want to construct arbitrary types like:

stuct MyStruct {
    pub foo: (usize,usize)
}

I have to always do that manual registration

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-ComplexQuite challenging from either a design or technical perspective. Ask for help!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions