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 |
|