/unity-sweeper

A simple clean-up tool to remove unused assets from Unity.

Primary LanguageC#MIT LicenseMIT

Unity Sweeper

This plugin helps you sweep up your project - it detects unused files, removes them from the project, and creates a backup of the removed assets exported as a unity package.

Using the tool is really simple. You can initiate deleting unused files through the Window menu.

Window menu choices

Options are:

  • Only resource - Will sweep everything except scripts
  • Unused by Editor - Will sweep everything used by game or editor, including scripts
  • Unused by Game - Will sweep everything used by game, including scripts
  • Clear cache - Deletes cache files

If you choose any of first three options, Unity Sweeper will run a search through your project, after which it will show a screen like this:

Sweep window

...from where you can review the unused assets found, uncheck assets which you want to keep in your project, and select the assets you want to exclude from your project. Unity Sweeper will also remove empty directories.

Clicking the Exclude from Project button will create a Unity Package with current the datetime and export the package to the location of PROJECT_ROOT/BackupUnusedAssets.

Final result

Enjoy!


The first (but since abandoned) version of this tool was built by tsubaki.