docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IQueryHandler<TData, TPayload>

    Interface for query handlers.

    Namespace: UnityEditor.Search
    Assembly: com.unity.quicksearch.dll
    Syntax
    public interface IQueryHandler<TData, in TPayload> where TPayload : class
    Type Parameters
    Name Description
    TData

    The filtered data type.

    TPayload

    The payload type.

    Methods

    Eval(TData)

    Implement this function to evaluate the query on a single element.

    Declaration
    bool Eval(TData element)
    Parameters
    Type Name Description
    TData element

    A single object to be tested.

    Returns
    Type Description
    bool

    True if the object passes the query, false otherwise.

    Eval(TPayload)

    Implement this function to evaluate the query on a payload.

    Declaration
    IEnumerable<TData> Eval(TPayload payload)
    Parameters
    Type Name Description
    TPayload payload

    The input data of the query.

    Returns
    Type Description
    IEnumerable<TData>

    An enumerable of type TData.

    In This Article
    Back to top
    Copyright © 2025 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)