Class JobForEachExtensions | Entities | 0.16.0-preview.21
docs.unity.cn
    Show / Hide Table of Contents

    Class JobForEachExtensions

    Inheritance
    Object
    JobForEachExtensions
    Namespace: Unity.Entities
    Syntax
    public static class JobForEachExtensions

    Methods

    CalculateEntityCount<T>(T, ComponentSystemBase)

    Declaration
    public static int CalculateEntityCount<T>(this T jobData, ComponentSystemBase system)
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    ComponentSystemBase system
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    T

    GetEntityQueryForIJobForEach(ComponentSystemBase, Type)

    Declaration
    public static EntityQuery GetEntityQueryForIJobForEach(this ComponentSystemBase system, Type jobType)
    Parameters
    Type Name Description
    ComponentSystemBase system
    Type jobType
    Returns
    Type Description
    EntityQuery

    PrepareEntityQuery<T>(T, ComponentSystemBase)

    Declaration
    public static void PrepareEntityQuery<T>(this T jobData, ComponentSystemBase system)
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    ComponentSystemBase system
    Type Parameters
    Name Description
    T

    Run<T>(T, ComponentSystemBase, JobHandle)

    Declaration
    public static JobHandle Run<T>(this T jobData, ComponentSystemBase system, JobHandle dependsOn = default(JobHandle))
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    ComponentSystemBase system
    JobHandle dependsOn
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T

    Run<T>(T, EntityQuery, JobHandle)

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

    Schedule<T>(T, ComponentSystemBase, JobHandle)

    Declaration
    public static JobHandle Schedule<T>(this T jobData, ComponentSystemBase system, JobHandle dependsOn = default(JobHandle))
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    ComponentSystemBase system
    JobHandle dependsOn
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T

    Schedule<T>(T, EntityQuery, JobHandle)

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

    ScheduleSingle<T>(T, ComponentSystemBase, JobHandle)

    Declaration
    public static JobHandle ScheduleSingle<T>(this T jobData, ComponentSystemBase system, JobHandle dependsOn = default(JobHandle))
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    ComponentSystemBase system
    JobHandle dependsOn
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T

    ScheduleSingle<T>(T, EntityQuery, JobHandle)

    Declaration
    public static JobHandle ScheduleSingle<T>(this T jobData, EntityQuery query, JobHandle dependsOn = default(JobHandle))
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    EntityQuery query
    JobHandle dependsOn
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 30 October 2020