Skip to content

Conversation

@JeanMertz
Copy link
Contributor

This adds an any_filtered condition that returns true if there are any entities matching the given filter.

Example:

my_system.run_if(any_filtered::<Changed<A>>)

I often implement this method in my own projects, so I figured I'd upstream it, in case others have a use for it.

This adds an `any_filtered` condition that returns `true` if there are
any entities matching the given filter.

Example:

```rust
my_system.run_if(any_filtered::<Changed<A>>)
```

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@alice-i-cecile
Copy link
Member

Duplicate of #17327 :)

@JeanMertz
Copy link
Contributor Author

D'oh. What are the odds. Apologies for the noise.

@JeanMertz JeanMertz deleted the any-filtered-component branch January 14, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants