docs.unity.cn
    Show / Hide Table of Contents

    Namespace UnityEditor.Search

    Classes

    CustomObjectIndexerAttribute

    Allow a user to register a custom Indexing function for a specific type. The registered function must be of type: static void Function(CustomObjectIndexerTarget context, ObjectIndexer indexer);

    [CustomObjectIndexer(typeof(Material))]
    internal static void MaterialShaderReferences(CustomObjectIndexerTarget context, ObjectIndexer indexer)
    {
       var material = context.target as Material;
       if (material == null)
           return;
    
       if (material.shader)
       {
           var fullShaderName = material.shader.name.ToLowerInvariant();
           var shortShaderName = System.IO.Path.GetFileNameWithoutExtension(fullShaderName);
           indexer.AddProperty("ref", shortShaderName, context.documentIndex, saveKeyword: false);
           indexer.AddProperty("ref", fullShaderName, context.documentIndex, saveKeyword: false);
       }
    }

    Dispatcher

    FuzzySearch

    Utility class to perform matching against query text using a fuzzy search algorithm.

    ItemSelectors

    ObjectField

    Makes a field to receive any object type.

    ObjectIndexer

    Specialized SearchIndexer used to index Unity Assets. See UnityEditor.Search.AssetIndexer for a specialized SearchIndexer used to index simple assets and see for an indexer used to index scene and prefabs.

    ParsedQuery<T>

    A Query defines an operation that can be used to filter a data set.

    ParsedQuery<TData, TPayload>

    A Query defines an operation that can be used to filter a data set.

    PropertyTable

    Query<T>

    Query<TData, TPayload>

    QueryEngine

    A QueryEngine defines how to build a query from an input string. It can be customized to support custom filters and operators. Default query engine of type object.

    QueryEngine<TData>

    A QueryEngine defines how to build a query from an input string. It can be customized to support custom filters and operators.

    QueryEngineFilterAttribute

    Base attribute class used to define a custom filter on a QueryEngine. All filter types supported by QueryEngine.AddFilter are supported by this attribute.

    QueryEngineParameterTransformerAttribute

    Base attribute class that defines a custom parameter transformer function.

    QueryError

    A QueryError holds the definition of a query parsing error.

    QueryGraph

    Class that represents a query graph.

    SearchAction

    Define an action that can be applied on SearchItem of a specific provider type.

    SearchActionsProviderAttribute

    Attribute used to declare a static method that define new actions for specific search providers.

    SearchColumn

    SearchColumnProviderAttribute

    SearchContext

    The search context encapsulate all the states necessary to perform a query. It allows the full customization of how a query would be performed.

    SearchExpression

    SearchExpressionEvaluatorAttribute

    SearchExpressionEvaluatorSignatureOverloadAttribute

    SearchIndexer

    Base class for an Indexer of document which allow retrieving of a document given a specific pattern in roughly log(n).

    SearchItem

    Search items are returned by the search provider when some results need to be shown to the user after a search is made. The search item holds all the data that will be used to sort and present the search results.

    SearchItemProviderAttribute

    Attribute used to declare a static method that will create a new search provider at load time.

    SearchMonitor

    SearchPropositionFlagsExtensions

    SearchPropositionOptions

    SearchProvider

    SearchProvider manages search for specific type of items and manages thumbnails, description and subfilters, etc.

    SearchQueryError

    Class that represents a query parsing error.

    SearchSelection

    Class giving readonly access to the current list of selected items in QuickSearch.

    SearchSelectorAttribute

    SearchService

    Principal Quick Search API to initiate searches and fetch results.

    SearchSettings

    SearchTable

    SearchUtils

    Utilities used by multiple components of QuickSearch.

    SearchViewState

    Structs

    AssetIndexChangeSet

    CustomObjectIndexerTarget

    Descriptor for the object that is about to be indexed. It stores a reference to the object itself as well a an already setup SerializedObject.

    ParseResult<T>

    A ParseResult holds the result of a parsing operation.

    QueryFilterOperator

    A QueryFilterOperator defines a boolean operator between a value returned by a filter and an operand inputted in the search query.

    QueryGraphOptimizationOptions

    Structure containing the different options used to optimize a query graph.

    QueryToken

    Represents a token of a query string.

    QueryValidationOptions

    Struct containing the available query validation options.

    SearchColumnCompareArgs

    SearchColumnEventArgs

    SearchDocument

    Represents a searchable document that has been indexed.

    SearchExpressionContext

    SearchExpressionRuntime

    SearchField

    SearchProposition

    SearchResult

    Encapsulate an element that was retrieved from a query in a g.

    SearchSelectorArgs

    SearchValue

    StringView

    Structure that holds a view on a string, with a specified range of [startIndex, endIndex[.

    Interfaces

    IFilterNode

    Interface representing a filter node.

    INestedQueryNode

    Interface representing a nested query node.

    IQueryEngineFilter

    Interface for Query filters.

    IQueryHandler<TData, TPayload>

    Interface for query handlers.

    IQueryHandlerFactory<TData, TQueryHandler, TPayload>

    Interface for query handler factories.

    IQueryNode

    Interface representing a query node.

    ISearchDatabase

    ISearchList

    A search list represents a collection of search results that is filled

    ISearchNode

    Interface representing a word search node.

    ISearchQuery

    ISearchView

    Search view interface used by the search context to execute a few UI operations.

    ITableView

    Enums

    DisplayMode

    DisplayMode for a ISearchView

    FetchPreviewOptions

    Defines at set of options that indicates to the search provider how the preview should be fetched.

    IndexingOptions

    QueryNodeType

    Enumeration representing the query node types.

    RefreshFlags

    SearchColumnFlags

    SearchDocumentFlags

    SearchExpressionEvaluationHints

    SearchExpressionKeyword

    SearchExpressionType

    SearchFlags

    Various search options used to fetch items.

    SearchItemOptions

    Indicates how the search item description needs to be formatted when presented to the user.

    SearchPropositionFlags

    SearchQueryErrorType

    Enum representing the possible types of query errors.

    SearchValue.ValueType

    ShowDetailsOptions

    Defines what details are shown in the details panel for the search view.

    TextCursorPlacement

    Where to place the cursor in the text are of a ISearchView (see SetSearchText(String, TextCursorPlacement)).

    Delegates

    SearchColumn.CompareEntry

    SearchColumn.DrawEntry

    SearchColumn.GetterEntry

    SearchColumn.SetterEntry

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