docs.unity3d.com
    Show / Hide Table of Contents

    Method ScheduleByRef

    ScheduleByRef<T>(T, EntityQuery, JobHandle)

    Declaration
    public static JobHandle ScheduleByRef<T>(this T jobData, EntityQuery query, JobHandle dependsOn = default(JobHandle))
        where T : struct, IJobEntity
    Parameters
    Type Name Description
    T jobData
    EntityQuery query
    JobHandle dependsOn
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T

    ScheduleByRef<T>(T, JobHandle)

    Schedules the given job to run on an arbitrary non-main thread. By referencing the job data.

    Declaration
    public static JobHandle ScheduleByRef<T>(this T jobData, JobHandle dependsOn = default(JobHandle))
        where T : struct, IJobEntity
    Parameters
    Type Name Description
    T jobData

    The implemented IJobEntity job

    JobHandle dependsOn

    A jobhandle dependency, if not specified then generated as Dependency property in System

    Returns
    Type Description
    JobHandle

    Jobhandle with dependency chain

    Type Parameters
    Name Description
    T

    Type of IJobEntity implementation

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023