Wrapper utility to open the built-in object picker.
More...
Inherits EditorWindow.
|
| 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...
|
| |
Wrapper utility to open the built-in object picker.
| static void Open< T > |
( |
Action< T > |
onPicked, |
|
|
Action< T > |
onClosed = null, |
|
|
T |
obj = null, |
|
|
bool |
allowSceneObjects = false, |
|
|
string |
searchFilter = null |
|
) |
| |
|
static |
Open a picker to select an object of the specified type.
- Template Parameters
-
- Parameters
-
| onPicked | The callback invoked each time when an object picked. |
| onClosed | The callback invoked once when the window closed. |
| obj | The object to be selected by default. |
| allowSceneObjects | Is selection of Scene objects allowed, or only show assets. |
| searchFilter | Default search filter to apply. |