Black CraftDev

Docs/Files

Label Browser

Filter assets by label, asset bundle and type, then select the result or export it as a package.

EditionPro only · launching soonMenuTools›BlackCraft›Hexbench›Files›Label BrowserClassLabelBrowserWindow

Uses asset labels, asset bundle names and asset types as filters. You choose which to include and which to exclude, and the window lists the assets that are left, which you can then select or export as a .unitypackage.

Open it with Tools›BlackCraft›Hexbench›Files›Label Browser.

Scanning and filtering

  1. Pick a scope in the toolbar and press Scan. Each asset in scope is checked for its labels, bundle and type without being loaded. Big scopes show a progress bar you can cancel.
  2. Every label, bundle and type found appears in the left pane as a chip with a count.
  3. Click a chip to include it, or Shift+click to exclude it. Clicking again clears it. The right-click menu has the same options and adds Only This.
  4. Matching assets are listed on the right. Selecting rows selects them in the Project window, and double-clicking opens one.
  5. Export Package... saves the results as a .unitypackage.

The toolbar search filters the chips, and the results stay as they are. Chips that are switched on remain visible while you search.

How chips combine

Included chips in the same group are alternatives, so including Wood and Rock lists assets labelled with either. Labels can be made strict instead: switch the Labels header from Match Any to Match All and only assets carrying every included label are listed.

Different groups narrow each other. A bundle chip plus a label chip lists the assets in that bundle that also have that label. Exclusion overrides everything, and a single excluded label, bundle or type drops an asset regardless of what else it has. When nothing is included, everything counts as in, so excluding Lowpoly by itself lists everything in scope apart from the Lowpoly assets.

Counts update with the results. Include a bundle and every label chip shows how many assets in that bundle carry it, with empty chips dimmed. An excluded chip shows how many assets it is removing.

(no label) and (no bundle) work like any other chip. Including (no label) lists every asset in scope that has not been labelled yet. The Asset Bundles group only shows when at least one asset in scope has a bundle name. Bundle names are read the same way the build reads them, so an asset inside a folder that has a bundle name counts as part of that bundle.

Exporting

Include Dependencies adds everything the results reference under Assets/, such as a material's textures and shader, so the package opens complete in another project. The save dialog's title says how many assets and dependencies it will write.

Dependencies are exported even when a chip excludes them. Excluding the Texture type and exporting materials will still include their textures. To export exactly what is listed, turn Include Dependencies off.

The file is named after the included chips, and the window remembers the folder between exports.

Filters persist between sessions, and a scan result survives a script reload. When assets have been imported, moved or deleted since the last scan, the toolbar shows changed; scan again to pick them up.

Labels are edited in the Inspector's asset label strip. For what references an asset, as opposed to how it is tagged, use Where Used.

labelstagsasset bundlesfilterunitypackageexportpackagelibrary