Skip to content

Expand WorldCell to support queries #1555

@alice-i-cecile

Description

@alice-i-cecile

Description

WorldCell allows split mutable access to the World, via panicking runtime borrows checking. Right now, it can only do so for resources, but it would be nice to be able to have the same functionality for queries too.

Context

Originally from the Future Work section of #1525.

Personally, I think the API should be removed instead (#3939) and we should implement #4157. However if WorldCell does exist, it should have this feature.

bevyengine/rfcs#42 proposes this functionality in more depth, and an implementation is linked there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-FeatureA new feature, making something new possibleS-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