Black CraftDev

Docs/Files

Where Used

Pick any asset and see the prefabs, scenes, materials and scriptable objects that reference it, with the unreferenced case called out.

EditionPro only · launching soonMenuTools›BlackCraft›Hexbench›Files›Where UsedClassWhereUsedWindow

Unity can tell you what an asset uses. This window answers the opposite question: what uses this asset?

Open it with Tools›BlackCraft›Hexbench›Files›Where Used.

Drop an asset on the field, pick one, or press Use Selection. Any kind of asset works, from textures and materials to meshes, prefabs, scripts, clips and scriptable objects. Then press Find.

Results are grouped by what holds the reference: prefabs, scenes, materials, scriptable objects, models, animation, and everything else. Expand a row to see the exact object and property, for example Props/Barrel and MeshRenderer.m_Materials.Array.data[0]. Expanding opens that prefab or scene to read the property name, which is why it is done one row at a time. A reference to a sub-asset, such as one sprite in a sheet or one mesh in a model, counts as a use of the asset you picked.

Follow Selection keeps the result in step with whatever you select in the Project window.

Indirect references

Include Indirect also lists what references the referencing assets. A texture is used directly by a material, for instance, and indirectly by every prefab that uses that material. Hops sets how far up the chain to go. On a widely shared asset the result grows fast with each hop, so start at 2.

Turning it off or lowering Hops goes back to the smaller result without searching again. Turning it on or raising Hops re-runs against the index you already have, which is instant unless an import has dropped the index since the last Find.

The index

The first Find reads every asset's dependencies once and keeps that map, so later searches are instant. Any import discards it. When that happens the toolbar shows index: changed, and Rebuild Index reads everything again.

When nothing references it

An empty result gets a clear message instead of a blank list, together with anything that still keeps the asset alive:

  • Resources or StreamingAssets: code can load it by name or read it as a file.
  • Addressable: it has an entry in an Addressables group, either directly or through a folder entry.
  • Build scene or preloaded: it ships whether or not anything references it.

These are not serialized references, so a reference search cannot find them. The same goes for Resources.Load, asset bundles and names assembled in code. "Unreferenced" here means no scene, prefab or asset file points at it. It does not mean the asset is safe to delete.

If you want to repoint references somewhere else, use the Material Replacer.

referencesusageorphanunuseddependenciescleanup