protected override JobHandle ExtractValues(ComponentSystemBase system, EntityQuery query, JobHandle inputDeps) { inputDeps = new ExtractValuesPerChunk <TSource, TTarget> { ChunkType = system.GetArchetypeChunkComponentType <TSource>(true), Values = m_values, LastSystemVersion = system.LastSystemVersion }.Schedule(query, inputDeps); return(inputDeps); }
public override JobHandle Update(ComponentSystemBase system, EntityQuery query, JobHandle inputDeps) { inputDeps = new ExtractValuesPerChunk { ChunkType = system.GetComponentTypeHandle <LocalToWorld>(true), Values = m_values, LastSystemVersion = system.LastSystemVersion, ExtractAll = m_changed }.Schedule(query, inputDeps); return(inputDeps); }
protected override JobHandle ExtractValues(ComponentSystemBase system, EntityQuery query, JobHandle inputDeps) { inputDeps = new ExtractValuesPerChunk { ChunkType = system.GetArchetypeChunkComponentType <LocalToWorld>(true), Values = m_values, LastSystemVersion = system.LastSystemVersion, ExtractAll = m_didChange }.Schedule(query, inputDeps); return(inputDeps); }