Version: 2022.3
public bool SelectObject (SearchService.ISearchContext context, Action<Object,bool> onObjectSelectorClosed, Action<Object> onObjectSelectedUpdated);

参数

context The search context.
onObjectSelectorClosed Callback to call when the selector window is closed. The callback takes two arguments. The first argument is the selected object, or null for none. The second is a boolean that indicates whether the operation was cancelled or not.
onObjectSelectedUpdated Callback to call when the selection in the window changes. This callback takes one argument: the selected object, or null for none.

返回

bool True if the search engine handles the object select operation, false otherwise. If false is returned, the default object selector is used instead.

描述

This function is called when a window must be opened to perform a search and select operation.

If the function returns false, the default selector is used instead.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961