docs.unity.cn
    Show / Hide Table of Contents

    Method Schedule

    Schedule<TDescription>(TDescription, JobHandle)

    Schedule the generated job to be run sequentially. This job may run at a later point, but will run the job execution sequentially instead of in parallel.

    Declaration
    public static JobHandle Schedule<TDescription>(this TDescription description, JobHandle dependency)
        where TDescription : ILambdaJobExecutionDescription
    Parameters
    Type Name Description
    TDescription description

    The target object

    JobHandle dependency

    The handle identifying already scheduled jobs that could constrain this job. A job that writes to a component cannot run in parallel with other jobs that read or write that component. Jobs that only read the same components can run in parallel.

    Returns
    Type Description
    JobHandle

    A handle that combines the current Job with previous dependencies identified by the dependency parameter.

    Type Parameters
    Name Description
    TDescription

    Type of target object

    Schedule<TDescription>(TDescription)

    Schedule the generated job to be run sequentially and use the Dependency property of the containing system for both the input and output dependencies. This job may run at a later point, but will run the job execution sequentially instead of in parallel.

    Declaration
    public static void Schedule<TDescription>(this TDescription description)
        where TDescription : ILambdaJobExecutionDescription
    Parameters
    Type Name Description
    TDescription description

    The target object

    Type Parameters
    Name Description
    TDescription

    Type of target object

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023