Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Open<T>(SearchWindowContext, T)

Opens the search window above the Graph.
Read time 1 minuteLast updated 10 days ago

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.