Wanzyee Studio

Wrapper utility to open the built-in object picker. More...

Inherits EditorWindow.

Static Public Member Functions

static void Open< T > (Action< T > onPicked, Action< T > onClosed=null, T obj=null, bool allowSceneObjects=false, string searchFilter=null)
 Open a picker to select an object of the specified type. More...
 

Detailed Description

Wrapper utility to open the built-in object picker.

Member Function Documentation

static void Open< T > ( Action< T >  onPicked,
Action< T >  onClosed = null,
obj = null,
bool  allowSceneObjects = false,
string  searchFilter = null 
)
static

Open a picker to select an object of the specified type.

Template Parameters
TObject type.
Parameters
onPickedThe callback invoked each time when an object picked.
onClosedThe callback invoked once when the window closed.
objThe object to be selected by default.
allowSceneObjectsIs selection of Scene objects allowed, or only show assets.
searchFilterDefault search filter to apply.
Type Constraints
T :Object