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.