Open dothanhtrung opened 1 month ago
In theory we could statically determine that the run conditions are mutually exclusive 🤔 That would be very hard, and I'm not sure it's worth it, but maybe it is for states? Not sure.
The other workaround is to use a named system set and order relative to that.
Sorry. I am not sure if this is a bug or it is expected as design.
Bevy version
0.14
Relevant system information
What you did
I added a same system to two different states but the app cannot run.
What went wrong
what were you expecting? Application run without crash.
what actually happened? Application crashes with error:
I don't know what is ambiguous here. It is very clear that:
Menu
, runa
, then runb
.Ingame
, runa
.Additional information
If I add system
a
into only one state, application can run:This is okay:
This is okay:
I know I can use
(a, b).chain()
instead, but somtimes usingafter()
is cleaner.Full error logs