docs.unity.cn
    Show / Hide Table of Contents

    Method MatchesAny

    MatchesAny(NativeArray<Entity>)

    Fast path to determine if any entities in the input entity list match this EntityQuery.

    Declaration
    public bool MatchesAny(NativeArray<Entity> entityArray)
    Parameters
    Type Name Description
    NativeArray<Entity> entityArray

    A list of entities to limit execution to. Only entities in the list will be considered.

    Returns
    Type Description
    Boolean

    True if any entity in the list matches the query, false if no entities match the query

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use