#get all entities with a shared component within a job

1 messages · Page 1 of 1 (latest)

shadow folio
#

Hi, i'm trying to get all entities with a specific ISharedComponent within a job. I have been searching for a while now but couldn't find the answer.

Is there a way to do this, and if so, How?

static remnant
#

did you look at shared component filters?

EntityQuery query = ...;
query.SetSharedComponentFilter(new MySharedComponent{ Value = 1});
someJob.Schedule(query);