docs.unity.cn
    Show / Hide Table of Contents

    Method Matches

    Matches(Entity)

    Reports whether an entity would be selected by the EntityQuery instance used to create this entity query mask.

    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.

    Remarks

    The match does not consider any filter settings of the EntityQuery.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use