Interface IJobChunk
IJobChunk is a type of IJob that iterates over a set of chunks. For each chunk the job runs on,
the job code receives an Archetype
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
[JobProducerType(typeof(JobChunkExtensions.JobChunkProducer<>))]
public interface IJobChunk
Remarks
Schedule or run an IJobChunk job inside the OnExecute
function is called for each chunk, along with a bitmask indicating
which entities in the chunk should be processed.
To pass data to your Execute function (beyond the Execute
parameters), add public fields to the IJobChunk
struct declaration and set those fields immediately before scheduling the job. You must always pass the
component type information for any components that the job reads or writes using a field of type,
Component
Methods
Name | Description |
---|---|
Execute(in Archetype |
Implement the |