docs.unity.cn
    Show / Hide Table of Contents

    Method AddDependency

    AddDependency(JobHandle)

    Adds another job handle to this EntityQuery's dependencies.

    Declaration
    public JobHandle AddDependency(JobHandle job)
    Parameters
    Type Name Description
    JobHandle job

    Handle for the job to add to the query's dependencies.

    Returns
    Type Description
    JobHandle

    The new combined job handle for the query's dependencies.

    Remarks

    An entity query uses jobs internally when required to create arrays of entities and chunks. This junction adds an external job as a dependency for those internal jobs.

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