docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IJobParallelForBatch

    Job type allowing for data to be operated on in parallel batches.

    Namespace: Unity.Jobs
    Assembly: Unity.Collections.dll
    Syntax
    [JobProducerType(typeof(IJobParallelForBatchExtensions.JobParallelForBatchProducer<>))]
    public interface IJobParallelForBatch
    Remarks

    When scheduling an IJobParallelForBatch job the number of elements to work on is specified along with a batch size. Jobs will then run in parallel invoking Execute at a particular 'startIndex' of your working set and for a specified 'count' number of elements.

    Methods

    Execute(int, int)

    Function operation on a "batch" of data contained within the job.

    Declaration
    void Execute(int startIndex, int count)
    Parameters
    Type Name Description
    int startIndex

    Starting index of job data to safely access.

    int count

    Number of elements to operate on in the batch.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)