Closed scambier closed 2 years ago
You are correct. label
/before
/after
cannot be used on a specific system inside a ConditionSet
.
If you need system ordering on individual systems, you have to add them individually, one by one, without using a ConditionSet
.
Remember that on individual systems, the labels/ordering must come at the end, after the run conditions.
Also, on an unrelated note, I notice another issue in your code. before
/after
do not work with system names, only with labels. .after(another_system)
will just print a runtime warning that it cannot find another_system
. You have to create labels and do your ordering with labels.
I am sorry for the stupid API restrictions and syntax requirements. It's unfortunate. These Bevy APIs were incredibly difficult to work with (private with locked down access) and this was the only way I could make things work.
Thanks for the answer :)
Also, on an unrelated note, I notice another issue in your code
Heh, it looked like it worked, I guess it was just luck when I tried it :p
Hello, I have an issue with systems ordering within a
ConditionSet
.With a standard
SystemSet
, this works:But with a
ConditionSet
this doesn't:If I use a
.into()
after the.after()
, the error changes toEdit: I can use
.chain()
for this specific case, but being able to use.after()
and.before()
within aConditionSet
would be better