docs.unity3d.com
    Show / Hide Table of Contents

    Method WithStoreEntityQueryInField

    WithStoreEntityQueryInField(ForEachLambdaJobDescription, ref EntityQuery)

    You can use this method to store the EntityQuery generated for this Entities.ForEach invocation in a variable that you can then reuse for other purposes, such as calculating entity counts. Note: The EntityQuery is created in OnCreate. This method gives a copy of that query that can be used at any time (even before the Entities.ForEach is invoked). Also, this EntityQuery does not have any of the filters that the Entities.ForEach invocation sets up.

    Declaration
    public static ForEachLambdaJobDescription WithStoreEntityQueryInField(this ForEachLambdaJobDescription description, ref EntityQuery query)
    Parameters
    Type Name Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescription description
    EntityQuery query

    Reference to EntityQuery object to store the EntityQuery created for this Entities.ForEach invocation.

    Returns
    Type Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescription

    WithStoreEntityQueryInField(LambdaJobChunkDescription, ref EntityQuery)

    Declaration
    public static LambdaJobChunkDescription WithStoreEntityQueryInField(this LambdaJobChunkDescription description, ref EntityQuery query)
    Parameters
    Type Name Description
    Unity.Entities.CodeGeneratedJobForEach.LambdaJobChunkDescription description
    EntityQuery query
    Returns
    Type Description
    Unity.Entities.CodeGeneratedJobForEach.LambdaJobChunkDescription

    WithStoreEntityQueryInField(ForEachLambdaJobDescriptionJCS, ref EntityQuery)

    Declaration
    public static ForEachLambdaJobDescriptionJCS WithStoreEntityQueryInField(this ForEachLambdaJobDescriptionJCS description, ref EntityQuery query)
    Parameters
    Type Name Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescriptionJCS description
    EntityQuery query
    Returns
    Type Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescriptionJCS
    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