Skip to content

Is there a way to iterate through Query results in the same way as a Vec, or to get a Vec of entities? #14685

Answered by alice-i-cecile
polaris64 asked this question in Q&A
Discussion options

You must be logged in to vote

Collect the entities into a Vec using query.iter_mut().collect::<Vec<_>>().

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@polaris64
Comment options

@polaris64
Comment options

Answer selected by polaris64
Comment options

You must be logged in to vote
7 replies
@C-Entropy
Comment options

@SkiFire13
Comment options

@C-Entropy
Comment options

@akimakinai
Comment options

@C-Entropy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants