Struct EntityQueryMask
This mask can be used to quickly identify if an entity would be returned by an EntityQuery. There is a maximum limit of 1024 EntityQueryMasks that can be created. EntityQueryMasks cannot be created from EntityQueries with filters.
Namespace: Unity.Entities
Syntax
public struct EntityQueryMask
Methods
Matches(Entity)
Confirms whether an entity would belong to the EntityQuery used to create this EntityQueryMask.
Declaration
public bool Matches(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to check. |
Returns
Type | Description |
---|---|
Boolean | True if the entity would be returned by the EntityQuery, false if it would not. |