Imagine you need to cross-reference all entities of type A with all entities of type B.
As I understand it, the way to do that is:
- inside JobComponentSystem OnUpdate(), you get Components of A with GetEntityQuery(…).ToComponentDataArray(…).
- assign this NativeArray(s) to field of job, that works with type B
- do some logic inside that job accessing Components of archetypes of A and B
Is there a better way?