Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add any_filtered condition #17371

Closed
wants to merge 1 commit into from

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 <[email protected]>
@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