Struct EntityQueryMask | Entities | 0.2.0-preview.18
docs.unity.cn
    Show / Hide Table of Contents

    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.

    See Also

    GetEntityQueryMask(EntityQuery)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX