Class SceneProvider | Quick Search | 2.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class SceneProvider

    Scene provider. Can be used as a base class if you want to enhance the scene searching capabilities of QuickSearch.

    Inheritance
    Object
    SearchProvider
    SceneProvider
    Inherited Members
    SearchProvider.CreateItem(SearchContext, String, Int32, String, String, Texture2D, Object)
    SearchProvider.CreateItem(String, Int32, String, String, Texture2D, Object)
    SearchProvider.CreateItem(SearchContext, String)
    SearchProvider.CreateItem(String)
    SearchProvider.CreateItem(String, String)
    SearchProvider.CreateItem(String, String, String, Texture2D, Object)
    SearchProvider.CreateItem(SearchContext, String, String, String, Texture2D, Object)
    SearchProvider.name
    SearchProvider.active
    SearchProvider.filterId
    SearchProvider.isExplicitProvider
    SearchProvider.showDetails
    SearchProvider.showDetailsOptions
    SearchProvider.fetchLabel
    SearchProvider.fetchDescription
    SearchProvider.fetchThumbnail
    SearchProvider.fetchPreview
    SearchProvider.startDrag
    SearchProvider.trackSelection
    SearchProvider.fetchItems
    SearchProvider.toObject
    SearchProvider.openContextual
    SearchProvider.fetchKeywords
    SearchProvider.onEnable
    SearchProvider.onDisable
    SearchProvider.priority
    SearchProvider.isEnabledForContextualSearch
    Namespace: Unity.QuickSearch.Providers
    Syntax
    public class SceneProvider : SearchProvider

    Constructors

    SceneProvider(String, String, String)

    Create a new SceneProvider.

    Declaration
    public SceneProvider(string providerId, string filterId, string displayName)
    Parameters
    Type Name Description
    String providerId

    Unique Id for the scene provider.

    String filterId

    Filter token id use to search only with this provider.

    String displayName

    Provider display name used in UI.

    Fields

    m_HierarchyChanged

    Has the hierarchy since last search.

    Declaration
    protected bool m_HierarchyChanged
    Field Value
    Type Description
    Boolean

    Properties

    buildKeywordComponents

    Build a list of keywords for all of the different components found in the scene.

    Declaration
    protected Func<GameObject, string[]> buildKeywordComponents { get; set; }
    Property Value
    Type Description
    Func<GameObject, String[]>

    fetchGameObjects

    Fetch all the scene GameObjects.

    Declaration
    protected Func<GameObject[]> fetchGameObjects { get; set; }
    Property Value
    Type Description
    Func<GameObject[]>

    Methods

    CreateActionHandlers(String)

    Create default action handles for scene SearchItem. See SearchAction.

    Declaration
    public static IEnumerable<SearchAction> CreateActionHandlers(string providerId)
    Parameters
    Type Name Description
    String providerId

    Provider Id registered for the action.

    Returns
    Type Description
    IEnumerable<SearchAction>

    A collection of SearchActions working for a Scene SearchItem.

    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