文档

Unity Engine

Unity Engine

CreateSceneResult(SearchContext, SearchProvider, GameObject)

Creates a search item compatible with the scene provider.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static SearchItem CreateSceneResult(SearchContext context, SearchProvider sceneProvider, GameObject go)

Parameters

Search context used to yield this item.

sceneProvider

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

SearchItemScene search item that can be yielded by your custom provider.