ドキュメント

Unity Engine

Unity Engine

Open<T>(SearchWindowContext, T)

Opens the search window above the Graph.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static bool Open<T>(SearchWindowContext context, T provider) where T : ScriptableObject, ISearchWindowProvider

Parameters

Structure of parameters that configure the search window.

provider

T
Reference to the object that provides the search results.

Returns

Type

Description

boolReturns true if the window opens successfully. Returns false otherwise.

Remarks

The provider object must be of type ScriptableObject for the search window to maintain the its reference after a domain reload. For example, you can use your own instance of an EditorWindow subclass.