removing unused and duplicate assets

hi all,

working on a very large project (>10GB) and would like to see a list of assets that aren’t used in any scenes, as well as assets that might be duplicates (have same name) eg

Assets/Folder1/my.fbx

Assets/Folder2/my.fbx

Is there any way to do either of these things?

Thanks in advance

if you right click the scene and choose “select dependancies”, it highlights everything used the in scene. You can then export those files as a package by right clicking and going “Export package”, you can then delete everything that remains, import the package (be aware that when you select dependancies of the scene, it doesn’t choose the scene, so you’ll have to ctrl+click it to be included). Everything will stay in it’s normal place, with all connects still remaining.

It’s a bit of a work around but the only way I know.

Good luck!

Wrote an editorwindow tool that will help. It lists all unused objects by type, and have an easy interface to delete them. Added the tool to the unity asset store:
Link to asset store

NB: It also lists filesize of files included in build. That should help to reduce buildsize.

The free and open-source tool Dependencies-Hunter does this job: finding all dependencies/usages of a given asset(s). It can also perform a full project analysis to find all unused assets there.


It consists of a single script so it’s easy to just copy-paste it to your project.

Internally it uses AssetDatabase.GetDependencies to build a map of all assets to use for analysis.