Skip to content

Error spawning non-deserializable components #16895

@matthunz

Description

@matthunz

Bevy version

Bevy 0.15

What you did

Spawn a component with BRP, specifically without reflecting Deserialize

What went wrong

Bevy responds to the request with an error: Unknown component type: bevy_reflect::DynamicEnum.
I think this has to do with how we're looking up the component in the type registration, using Dynamic- types instead of the concrete type.

Additional information

If a type reflects Deserialize, the request works flawlessly

Possibly relevant: https://docs.rs/bevy_remote/0.15.0/src/bevy_remote/builtin_methods.rs.html#817

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Dev-ToolsTools used to debug Bevy applications.A-ReflectionRuntime information about typesC-BugAn unexpected or incorrect behaviorS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions