I have a few thousand entities and I would like to sub sort them, as I generally need to debug 10 to 30 of them, so being able to add a Tag type component during a job would be great.
Is this even possible?
I have a few thousand entities and I would like to sub sort them, as I generally need to debug 10 to 30 of them, so being able to add a Tag type component during a job would be great.
Is this even possible?
I’m not sure if you could do this during a job (my guess would be ‘no’ because I think jobs require the components to already be in place), but you could add these in the update of a ComponentSystem.
Find the entities you need to operate on with a Entities.ForEach and then use the entitymanager to add the component.
Thanks, but no, this HAS to be within the job. I’m iterating through a few thossand entities to fine a subset of matches, and going through the Entity Debugger to view that subset is hell, and I don’t know the subset until the job so… thanks for the info though.
Have a great weekend
You can do that with Command Buffers, however it will be performed on the main thread. Check the documentation on command buffers for a more detailed explanation