Closed
Description
Legion component change events / filters are fired whenever a system query contains Write<Component>
. This makes these events useless for logic that needs to run when components are actually changed / as an optimization.
This might be solvable with some custom RefMut logic:
struct RefMut<T> {
// other members
modified: bool,
}
impl Deref for RefMut<T>
// on deref, set modified to true
// inside IntoSystem
query.iter(world) {
(a.fire(subscribers), b.fire(subscribers))
}
Metadata
Metadata
Assignees
Labels
No labels