Arch icon indicating copy to clipboard operation
Arch copied to clipboard

Component Lifecycle Query Filters

Open xentripetal opened this issue 1 year ago • 0 comments

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.

xentripetal avatar Dec 05 '23 03:12 xentripetal