#add_systems + run_if
7 messages · Page 1 of 1 (latest)
I had the same issue, and apparently you can't add run_if to multiple systems.
So the only solution for now, that i know of, is to add the run_if to every single system.
reddit
0 votes and 2 comments so far on Reddit
https://discord.com/channels/691052431525675048/1086020337923264693 here’s something that could be of use.
app.add_systems((a, b).in_set(OnUpdate(GameState::Playing)));```
ooh right, I didnt see that he only wanted to check if its in a state! you're right, that should work
Great! Thanks. 🙂
In case you still want to have one run_if for multiple systems, refer to following comment on how to do so: https://www.reddit.com/r/bevy/comments/11urw92/comment/jct51lh/?utm_source=share&utm_medium=web2x&context=3
reddit
10 votes and 5 comments so far on Reddit