Class SceneProvider
Scene provider. Can be used as a base class if you want to enhance the scene searching capabilities of QuickSearch.
Inherited Members
Namespace: Unity.QuickSearch.Providers
Syntax
public class SceneProvider : SearchProviderConstructors
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_HierarchyChangedField 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. |