Is there any way to filter a query by multiple SCDs, returning all that match any of the SCDs?
My current theory is to apply SetFilter multiple times, call CreateArchetypeChunkArray, and combine the ArchetypeChunk arrays and pass that to an IJobParallelFor.
Would be a lot cleaner just to be able to filter the query initially for what I’m after though.
Is this possible? Are there any other techniques to accomplish the same thing?
We are attaching SCDs to static objects in the world to indicate which ‘sector’ they are in, and using these sectors for both render culling and other spatial queries.
Generally we want to get the results from 4 sectors or 9 sectors but the way we are doing it now requires performing multiple SetFilters to get the desired result.
Another possibility is passing the query results for all objects into an ijobchunk, checking the SCD and skipping the chunk if it’s not a match I suppose…