bevyengine / bevyengine/bevy

`PopulatedEventReader` system parameter

Open
#15,393 0 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Feature D-Modest S-Ready-For-Implementation X-Contentious
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

> I'd be interested in adding a `NonEmptyEventReader` as well, either in the same PR or in a separate one.

*@alice-i-cecile from https://github.com/bevyengine/bevy/issues/15302#issuecomment-2360998076*

(name changed for consistency with "non empty query" `Populated`)

## What solution would you like?

Add `PopulatedEventReader` that implements `SystemParam::validate_param`,
so that it returns false if there are no events.

## Similar:
- #15302
- #15264

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.