docs.unity.cn
    Show / Hide Table of Contents

    Method MatchesIgnoreFilter

    MatchesIgnoreFilter(Entity)

    Reports whether an entity's archetype is in the set of archetypes matched by this query.

    Declaration
    public bool MatchesIgnoreFilter(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 (ignoring any filtering or enableable components), or false if it would not.

    Remarks

    This function does not consider any chunk filtering settings on the query, or whether the entity has any of the relevant components disabled.

    MatchesIgnoreFilter(ArchetypeChunk)

    Reports whether a chunk's archetype is in the set of archetypes matched by this query.

    Declaration
    public bool MatchesIgnoreFilter(ArchetypeChunk chunk)
    Parameters
    Type Name Description
    ArchetypeChunk chunk

    The chunk to check.

    Returns
    Type Description
    Boolean

    True if the chunk would be returned by the EntityQuery (ignoring any filtering), or false if it would not.

    Remarks

    This function does not consider any chunk filtering settings on the query.

    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