Class SearcherDatabaseBase | Searcher | 4.0.9
docs.unity3d.com
    Show / Hide Table of Contents

    Class SearcherDatabaseBase

    Inheritance
    Object
    SearcherDatabaseBase
    SearcherDatabase
    Namespace: UnityEditor.Searcher
    Syntax
    public abstract class SearcherDatabaseBase

    Constructors

    SearcherDatabaseBase(String)

    Declaration
    protected SearcherDatabaseBase(string databaseDirectory)
    Parameters
    Type Name Description
    String databaseDirectory

    Fields

    k_SerializedJsonFile

    Declaration
    protected const string k_SerializedJsonFile = "/SerializedDatabase.json"
    Field Value
    Type Description
    String

    m_ItemList

    Declaration
    protected List<SearcherItem> m_ItemList
    Field Value
    Type Description
    List<SearcherItem>

    Properties

    DatabaseDirectory

    Declaration
    public string DatabaseDirectory { get; set; }
    Property Value
    Type Description
    String

    ItemList

    Declaration
    public IList<SearcherItem> ItemList { get; }
    Property Value
    Type Description
    IList<SearcherItem>

    Methods

    AddItemToIndex(SearcherItem, ref Int32, Action<SearcherItem>)

    Declaration
    protected void AddItemToIndex(SearcherItem item, ref int lastId, Action<SearcherItem> action)
    Parameters
    Type Name Description
    SearcherItem item
    Int32 lastId
    Action<SearcherItem> action

    LoadFromFile()

    Declaration
    protected void LoadFromFile()

    Search(String, out Single)

    Declaration
    public abstract List<SearcherItem> Search(string query, out float localMaxScore)
    Parameters
    Type Name Description
    String query
    Single localMaxScore
    Returns
    Type Description
    List<SearcherItem>

    SerializeToFile()

    Declaration
    protected void SerializeToFile()
    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