docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISearchList

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

    Inherited Members
    IList<SearchItem>.IndexOf(SearchItem)
    IList<SearchItem>.Insert(int, SearchItem)
    IList<SearchItem>.RemoveAt(int)
    IList<SearchItem>.this[int]
    ICollection<SearchItem>.Add(SearchItem)
    ICollection<SearchItem>.Clear()
    ICollection<SearchItem>.Contains(SearchItem)
    ICollection<SearchItem>.CopyTo(SearchItem[], int)
    ICollection<SearchItem>.Remove(SearchItem)
    ICollection<SearchItem>.Count
    ICollection<SearchItem>.IsReadOnly
    IEnumerable<SearchItem>.GetEnumerator()
    IDisposable.Dispose()
    Namespace: UnityEditor.Search
    Assembly: com.unity.quicksearch.dll
    Syntax
    public interface ISearchList : IList<SearchItem>, ICollection<SearchItem>, IEnumerable<SearchItem>, IEnumerable, IDisposable

    Properties

    context

    Any valid search context that is used to track async search request. It can be null.

    Declaration
    SearchContext context { get; }
    Property Value
    Type Description
    SearchContext

    pending

    Indicates if the search request is still running and might return more results asynchronously.

    Declaration
    bool pending { get; }
    Property Value
    Type Description
    bool

    Methods

    AddItems(IEnumerable<SearchItem>)

    Add new items to the search list.

    Declaration
    void AddItems(IEnumerable<SearchItem> items)
    Parameters
    Type Name Description
    IEnumerable<SearchItem> items

    List of items to be added

    Fetch()

    Yields search item until the search query is finished. Nullified items can be returned while the search request is pending.

    Declaration
    IEnumerable<SearchItem> Fetch()
    Returns
    Type Description
    IEnumerable<SearchItem>

    List of search items. Items can be null and must be discarded

    GetRange(int, int)

    Return a subset of items.

    Declaration
    IEnumerable<SearchItem> GetRange(int skipCount, int count)
    Parameters
    Type Name Description
    int skipCount
    int count
    Returns
    Type Description
    IEnumerable<SearchItem>

    InsertRange(int, IEnumerable<SearchItem>)

    Insert new search items in the current list.

    Declaration
    void InsertRange(int index, IEnumerable<SearchItem> items)
    Parameters
    Type Name Description
    int index

    Index where the items should be inserted.

    IEnumerable<SearchItem> items

    Items to be inserted.

    Select<TResult>(Func<SearchItem, TResult>)

    Declaration
    IEnumerable<TResult> Select<TResult>(Func<SearchItem, TResult> selector)
    Parameters
    Type Name Description
    Func<SearchItem, TResult> selector
    Returns
    Type Description
    IEnumerable<TResult>
    Type Parameters
    Name Description
    TResult
    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)