docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Job extensions

    The Unity C# job system lets you run code on multiple threads. The system provides scheduling, parallel processing, and multi-threaded safety. The job system is a core Unity module that provides the general purpose interfaces and classes to create and run jobs, whether or not you're using the Entities package.

    These interfaces include:

    • IJob: Create a job that runs on any thread or core, which the job system scheduler determines.
    • IJobParallelFor: Create a job that can run on multiple threads in parallel, to process the elements of a NativeContainer.
    • IJobExtensions: Provides extension methods to run IJob jobs.
    • IJobParallelForExtensions: Provides extension methods to run IJobParallelFor jobs.
    • JobHandle: A handle to access a scheduled job. You can also use JobHandle instances to specify dependencies between jobs.

    For an overview of the jobs system see the Job system documentation in the Unity User Manual.

    The Collections package extends the job system to support ECS. It contains:

    • IJobParallelForDeferExtensions
    • IJobFilter
    • JobParallelIndexListExtensions
    • Job​Struct​Produce<T>
    In This Article
    Back to top
    Copyright © 2024 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)