docs.unity.cn
    Show / Hide Table of Contents

    Method WithStoreEntityQueryInField

    WithStoreEntityQueryInField(ForEachLambdaJobDescription, ref EntityQuery)

    Stores the generated query in a field

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

    The target object

    EntityQuery query

    Reference to field in the system to store the query

    Returns
    Type Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescription

    The target object, suitable for chaining multiple methods

    Remarks

    Unity calls this before the ForEach invocation, so the query can be used as soon as the system is created.

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