public static unsafe JobHandle Schedule <T>(this T jobData, ComponentGroup group, JobHandle dependsOn = default(JobHandle))
     where T : struct, IJobChunk
 {
     return(ScheduleInternal(ref jobData, group, dependsOn, ScheduleMode.Batched));
 }
示例#2
0
        internal override unsafe void InjectEntry(InjectionContext.Entry entry, ComponentGroup entityGroup, ref ComponentChunkIterator iterator, int length, byte *groupStructPtr)
        {
            var transformsArray = entityGroup.GetTransformAccessArray();

            UnsafeUtility.CopyStructureToPtr(ref transformsArray, groupStructPtr + entry.FieldOffset);
        }