QueryEntities Unlimited Components #81
-
How do you go about querying more than 4 component types from the generic method QueryEntities? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
as long as all the entities in the groups you are querying have the components you need, they can all be indexed with the same index. |
Beta Was this translation helpful? Give feedback.
-
What if the group has entities with different descriptors? |
Beta Was this translation helpful? Give feedback.
-
Svelto patterns advise using 1 EntityDescriptor = 1 group. If you mix entity descriptors in the same group, it's an advanced use and you must know what you are doing. |
Beta Was this translation helpful? Give feedback.
as long as all the entities in the groups you are querying have the components you need, they can all be indexed with the same index.
For this reason, you can call QueryEntities how many times you need.
With some Svelto patterns you instead get the current group from the foreach and use it to do the extra query entities inside the foreach.