You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structFoo;fnnumber_of_entities_system(mutcommands:Commands,query:Query<&Foo>){println!("num entities from dummy: {}", query.iter().count());
commands.spawn_bundle((Foo,));}fnnumber_of_entities_critiera(query:Query<&Foo>) -> ShouldRun{println!("num entities from criteria: {}", query.iter().count());ShouldRun::Yes}App::build().add_plugins(MinimalPlugins).add_system(
number_of_entities_system
.system().with_run_criteria(number_of_entities_critiera.system()),).run();
What you expected to happen
Both systems print the same number of entities
What actually happened
Run criteria reports zero entities, system reports correct number.
Additional information
Console log on my machine:
num entities from dummy: 1695
num entities from criteria: 0
num entities from dummy: 1696
num entities from criteria: 0
num entities from dummy: 1697
num entities from criteria: 0
num entities from dummy: 1698
The text was updated successfully, but these errors were encountered:
Bevy version
Bevy main 38feddb
Operating system & version
Windows 10
What you did
What you expected to happen
Both systems print the same number of entities
What actually happened
Run criteria reports zero entities, system reports correct number.
Additional information
Console log on my machine:
The text was updated successfully, but these errors were encountered: