docs.unity3d.com
    Show / Hide Table of Contents

    Interface IQueryHandlerFactory<TData, TQueryHandler, TPayload>

    Interface for query handler factories.

    Namespace: UnityEditor.Search
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023