bevyengine / bevyengine/bevy

Move `run_if` to `IntoSystem`

Open
#14,576 10 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Usability D-Complex S-Ready-For-Implementation
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 am using `bevy_eventlistener` to listen for events and want to have a run condition on the runned system.
However, `run_if` is only implemented for `IntoSystemConfigs`, not `IntoSystem`, where only `pipe` and `map` exist, which both don't really help me.

## What solution would you like?

Move / implement `run_if` for `IntoSystem`

## What alternative(s) have you considered?

Hand-wiring the two systems together.

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.