Skip to content

Do a Query without having it as a system parameter #18078

Discussion options

You must be logged in to vote

Bevy needs to know what data a system may access so that it knows which systems can run in parallel. So you can't do that unless you give the system access to all data (by using &mut World as a system param). The reason that you can queue commands that access any data is that commands are run later when they have exclusive access to the world.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elenakrittik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants