Skip to content

Bundle example #1514

Closed
Closed
@alice-i-cecile

Description

@alice-i-cecile

What problem does this solve or what need does it fill?

Bundles are an important piece of the core ECS design, but aren't covered very well by the existing examples.

What solution would you like?

An example showing how to create bundles is made. This should include more advanced patterns, like merging bundles, creating a trait for a specific class of bundles etc.

What alternative(s) have you considered?

This could instead be added to ecs_guide, or more game examples. I'm not super keen on this, since it makes it even harder to search for.

The docs.rs documentation could also be improved, which is probably worth doing at the same time regardless.

Additional context

Once #792 is solved, an explanation for how to merge bundles ergonomically should be added to this example.

If spawn_batch still exists, showing how to use these bundles with spawn_batch is very valuable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-ExamplesAn addition or correction to our examplesD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions