Skip to content

Component Lifecycle Query Filters #190

Description

@xentripetal

It would be very helpful if query descriptions had support for defining filters based on the lifecycle of components.

Mainly:

  1. Added<T> - Evaluates to true when component T was added to an entity since the last execution of the query
  2. Removed<T> - Evaluates to true when component T was removed from an entity since the last execution of the query
  3. Changed<T> - Evaluates to true when component T was accessed mutably or set for the entity since the last execution of the query

This is a feature present in bevy_ecs (Rust), DefaultECS (C#), and Unity DOTS

I'm not sure how feasible this is with Arch's architecture, but figured I'd put the idea out there since I'd love to see it in Arch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpostponedThis feature was postponed to a later release.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions