protected override JobHandle OnUpdate(JobHandle deps) { m_Group = GetEntityQuery( typeof(EcsTestData), ComponentType.ReadOnly(typeof(EcsTestSharedComp))); m_Group.SetFilter(m_sharedComp); DeltaJob job = new DeltaJob(); return(job.Schedule(m_Group, deps)); }
protected override JobHandle OnUpdate(JobHandle deps) { m_Group = GetComponentGroup( typeof(EcsTestData), ComponentType.ReadOnly(typeof(EcsTestSharedComp))); m_Group.SetFilter(m_sharedComp); DeltaJob job = new DeltaJob(); job.data = m_Group.GetComponentDataArray <EcsTestData>(); return(job.Schedule(job.data.Length, 1, deps)); }