Skip to content

Split access model between components and resources #7255

@alice-i-cecile

Description

@alice-i-cecile
          Yes it would under this access model. We could split this between "read all components" and "reads all resources" but I'm not sure how that would interact with the bitsets. Happy to try to do this in this PR, or defer it until later.

Originally posted by @james7132 in #6960 (comment)

Currently reads_all and writes_all would access all resource and component data. This is not ideal, as EntityMut and EntityRef are much more useful if they can be accessed at the same time as resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-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