Wanzyee Studio

Select filtered objects of specified type from the current selection. More...

Inherits EditorWindow.

Static Public Member Functions

static void OpenWindow ()
 Open the window. More...
 
static void FilterByType ()
 Show the context menu to select all assets of specified type deep in current selection. More...
 
static void FilterByLabel ()
 Show the context menu to select all assets of specified label deep in current selection. More...
 
static Object[] GetSelected (Type type, string label="", SelectionMode mode=SelectionMode.DeepAssets)
 Get filtered objects from current selection by specified type, label, and selection mode. More...
 

Detailed Description

Select filtered objects of specified type from the current selection.

Used to easily edit multiple objects with built-in importer by selecting folders and filter it. This will look into all assets if nothing selected currently. Click menu "Assets/Select Filtered/Filter Selection..." to do with an editor window. Or directly use sub menu items to select by type or asset label.

The original idea is from TextureImportSettings and ChangeAudioImportSettings. They became obsolete and stop updating since Unity do the multi-edit. But still one thing convenient lost, directly edit from selected asset folder. Obvious difference if you wanna select into multiple folder or hundreds of assets in a folder. This's used to simplify operation to select.

Member Function Documentation

static void OpenWindow ( )
static

Open the window.

static void FilterByType ( )
static

Show the context menu to select all assets of specified type deep in current selection.

static void FilterByLabel ( )
static

Show the context menu to select all assets of specified label deep in current selection.

static Object [] GetSelected ( Type  type,
string  label = "",
SelectionMode  mode = SelectionMode.DeepAssets 
)
static

Get filtered objects from current selection by specified type, label, and selection mode.

Filter from all assets if nothing selected. Return UnityEngine.GameObject instead if the type is UnityEngine.Component.

Parameters
typeType to filter.
labelAsset label to filter.
modeSelection mode to filter.
Returns
The filtered selection.