I have several JobComponentSystem working in chain, finally at the final system which is also a JobComponentSystem but in its OnUpdate I used chunk iteration. At the point where I call GetNativeArray
with a read-only ArchetypeChunkComponentType, it would complain that a previous job hasn’t finished yet so I cannot access the array.
I could call inputDeps.Complete(), but will that complete other unrelated jobs before this system too?
Ideally, I think there should be a way to tell that inputDeps JobHandle “I am going to access this component, so please complete only jobs that are working on this component.”
*note : This system running chunk iteration does not have any component group (I used a cached EntityArchetypeQuery), so I think it is impossible for this JCS to “know” what it needs without some special routines to inform the system?