Using a ComponentSystem, I can get a class in lieu of a component in Entities.ForEach to get legacy components on my converted entities (I’ve done this to access Animators for instance). How can I do the same in a JobComponentSystem which doesn’t have an EntityQueryBuilder “Entities” property to use for this? To be clear, I’m not looking to get references in a job, I’m happy to use the main thread OnUpdate, I just also want to run jobs in this system (just to add some components to entities). So is there some way I can get access to an EntityQueryBuilder in a JobComponentSystem?
EDIT: I forgot to mention, I was trying to use an EntityArchetypeQuery, but then I’m unsure how to get the behaviour from the Entity. eg:
new EntityArchetypeQuery {
All = new ComponentType[] { typeof(Tilemap) },
None = Array.Empty<ComponentType>(),
Any = Array.Empty<ComponentType>()});