Skip to content

Error when adding bundle as a single component instead of silently failing #392

Closed
@zenMaya

Description

@zenMaya

When you want to add *Components, you must use .spawn(*Components) and not .spawn((*Components, ..)) the spawning will fail, but there is no indication to the user, that it won't work.

This is also the case when adding .with(*Components) instead of .with_bundle(*Components)

This should definitely tell user, that it's not correct to add bundles this way and not silently fail but compile no problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-Code-QualityA section of code that is hard to understand or changeC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions