docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023