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... | |
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.
|
static |
Open the window.
|
static |
Show the context menu to select all assets of specified type deep in current selection.
|
static |
Show the context menu to select all assets of specified label deep in current selection.
|
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
.
type | Type to filter. |
label | Asset label to filter. |
mode | Selection mode to filter. |