-
I would like to run a query on a
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It seems quite odd and unhelpful to me that See #16923 though! |
Beta Was this translation helpful? Give feedback.
-
You need to construct the QueryState ahead of time and store it in the world as a resource or a component. |
Beta Was this translation helpful? Give feedback.
-
@alice-i-cecile That would solve my problem except I can't find that try_query method. The page you linked says 0.16-dev while I'm using the 0.15.1 version of Bevy which is the latest. I'm confused. @hymm That should work. That feels pretty inelegant though. |
Beta Was this translation helpful? Give feedback.
-
@alice-i-cecile Sorry I should have read #16923 that you pointed out first. It cleared things up. |
Beta Was this translation helpful? Give feedback.
@alice-i-cecile That would solve my problem except I can't find that try_query method. The page you linked says 0.16-dev while I'm using the 0.15.1 version of Bevy which is the latest. I'm confused.
@hymm That should work. That feels pretty inelegant though.