docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SearcherDatabaseBase

    Inheritance
    object
    SearcherDatabaseBase
    SearcherDatabase
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Searcher
    Assembly: Unity.Searcher.Editor.dll
    Syntax
    [PublicAPI]
    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
    [SerializeField]
    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 int, Action<SearcherItem>)

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

    BuildIndex()

    Declaration
    public virtual void BuildIndex()

    LoadFromFile()

    Declaration
    protected void LoadFromFile()

    Search(string, out float)

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

    SerializeToFile()

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