I’m kind of confused with how JobComponentSystems run I have a job with 3 components on 3 different entitys, example below.
Two of those components dont exist at run time the unemployed tag is added to a bunch of entities a few seconds after the program is run, in another JobComponentSystem. The EventEntityInfo is created with a new Entity when the space bar is pressed. It basically never runs even though the entitys with the components exist(I can see them in the list)
struct CountUnemployedJob : IJobForEach<EventEntityinfo, GeneralCityInfo, Unemployed>
However all of the below works
struct CountUnemployedJob : IJobForEach<Unemployed>
struct CountUnemployedJob : IJobForEach<GeneralCityInfo>
struct CountUnemployedJob : IJobForEach<EventEntityInfo>
Two arguments again and same as the three none of them run at all. I don’t understand what is happening. I’m just trying to get a sort of Event entity system working. Can you only use sets of components that belong to a single set of entity’s in an Ijobforeach?Am I supposed to get the other entity’s components with the EntityQuery system? If so what should I put as the EntityQuery’s and which should I put in the Ijobforeach or maybe separate jobs for each?