CreateSceneResult(SearchContext, SearchProvider, GameObject)
Creates a search item compatible with the scene provider.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
public static SearchItem CreateSceneResult(SearchContext context, SearchProvider sceneProvider, GameObject go)
Parameters
Search context used to yield this item.
Source search provider. Can be the scene provider obtained with SearchService.GetProvider using the id "scene".
Scene game object instance to create the new search item.
Returns
Type | Description |
|---|---|
| SearchItem | Scene search item that can be yielded by your custom provider. |