Method GetEntityQueryMask
GetEntityQueryMask(EntityQuery)
Gets an EntityQueryMask that can be used to quickly match if an entity belongs to an EntityQuery. There is a maximum limit of 1024 EntityQueryMasks that can be created. EntityQueryMasks cannot be created from EntityQueries with filters.
Declaration
public EntityQueryMask GetEntityQueryMask(EntityQuery query)
Parameters
Type | Name | Description |
---|---|---|
EntityQuery | query | The EntityQuery that describes the EntityQueryMask. |
Returns
Type | Description |
---|---|
EntityQueryMask | The EntityQueryMask corresponding to the EntityQuery. |
Remarks
Note that EntityQueryMask only filters by Archetype, it doesn't support EntityQuery shared component or change filtering.