how to loop trough registry.view<StructA, StructB>() #1264
Unanswered
SoulErasers
asked this question in
Q&A
Replies: 1 comment
-
Solved. I make mistake on creations so the view is cannot take the component. It's working fine |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
how to loop trough
registry.view<StructA, StructB>()
and get only get id that contains those datas? I tried
for (auto entity : view)
but not working properly. just hovering to the view got this error:
no operator "!=" matches these operands
C/C++(349) and this operand types are: entt::internal::view_iterator<entt::basic_sparse_set<entt::entity, std::allocatorentt::entity>, false, 2Ui64, 0Ui64> != entt::internal::view_iterator<entt::basic_sparse_set<entt::entity, std::allocatorentt::entity>, false, 2Ui64, 0Ui64>
Beta Was this translation helpful? Give feedback.
All reactions