docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IQueryHandlerFactory<TData, TQueryHandler, TPayload>

    Interface for query handler factories.

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

    The filtered data type.

    TQueryHandler

    The query handler type.

    TPayload

    The payload type.

    Methods

    Create(QueryGraph, ICollection<QueryError>)

    Implement this function to create a new query handler for a specific query graph.

    Declaration
    TQueryHandler Create(QueryGraph graph, ICollection<QueryError> errors)
    Parameters
    Type Name Description
    QueryGraph graph

    A graph representing a query.

    ICollection<QueryError> errors

    A collection of errors. Use this to report errors when needed.

    Returns
    Type Description
    TQueryHandler

    An object of type TQueryHandler.

    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)