docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Matches

    Matches(Entity)

    Returns true if the entity matches the query, false if it does not.

    Declaration
    public bool Matches(Entity e)
    Parameters
    Type Name Description
    Entity e

    The entity to check for match

    Returns
    Type Description
    bool

    True if the entity is matched by the query, or false if not.

    Remarks

    This function will automatically block on any running jobs writing to component data that would affect the results of the check. For a non-blocking variant that ignores any query filtering, see MatchesIgnoreFilter(Entity).

    This function creates a EntityQueryMask, if one does not exist for this query already. A maximum of 1024 EntityQueryMasks can be allocated per World.

    See Also
    MatchesIgnoreFilter(Entity)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)