Method CreateEntityQuery
CreateEntityQuery(params ComponentType[])
Creates a EntityQuery from an array of component types.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed array")]
public EntityQuery CreateEntityQuery(params ComponentType[] requiredComponents)
Parameters
Type | Name | Description |
---|---|---|
Component |
requiredComponents | An array containing the component types. |
Returns
Type | Description |
---|---|
Entity |
The EntityQuery derived from the specified array of component types. |
See Also
CreateEntityQuery(params EntityQueryDesc[])
Creates a EntityQuery from an EntityQueryDesc.
Declaration
[ExcludeFromBurstCompatTesting("Takes managed array")]
public EntityQuery CreateEntityQuery(params EntityQueryDesc[] queriesDesc)
Parameters
Type | Name | Description |
---|---|---|
Entity |
queriesDesc | An array of query descsriptions identifying a sets of component types to match. |
Returns
Type | Description |
---|---|
Entity |
The EntityQuery corresponding to the queryDesc. |
Remarks
Warning: The ability to construct an Entity
CreateEntityQuery(in EntityQueryBuilder)
Creates an EntityQuery from an EntityQueryBuilder.
Declaration
public EntityQuery CreateEntityQuery(in EntityQueryBuilder queriesDesc)
Parameters
Type | Name | Description |
---|---|---|
Entity |
queriesDesc | A queryDesc identifying a set of component types. |
Returns
Type | Description |
---|---|
Entity |
The EntityQuery corresponding to the queryDesc. |