Class JobForEachExtensions | Entities | 0.10.0-preview.6
docs.unity3d.com
    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 = null)
        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 = null)
        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 = null)
        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 = null)
        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 = null)
        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 = null)
        where T : struct, JobForEachExtensions.IBaseJobForEach
    Parameters
    Type Name Description
    T jobData
    EntityQuery query
    JobHandle dependsOn
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T
    In This Article
    • Methods
      • CalculateEntityCount<T>(T, ComponentSystemBase)
      • GetEntityQueryForIJobForEach(ComponentSystemBase, Type)
      • PrepareEntityQuery<T>(T, ComponentSystemBase)
      • Run<T>(T, ComponentSystemBase, JobHandle)
      • Run<T>(T, EntityQuery, JobHandle)
      • Schedule<T>(T, ComponentSystemBase, JobHandle)
      • Schedule<T>(T, EntityQuery, JobHandle)
      • ScheduleSingle<T>(T, ComponentSystemBase, JobHandle)
      • ScheduleSingle<T>(T, EntityQuery, JobHandle)
    Back to top
    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