Open<T>(SearchWindowContext, T)
Opens the search window above the Graph.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
public static bool Open<T>(SearchWindowContext context, T provider) where T : ScriptableObject, ISearchWindowProvider
Parameters
Structure of parameters that configure the search window.
Returns
Type | Description |
|---|---|
| bool | Returns 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.