I have a project that was used to prototype multiple things and I didn’t clean it while developing. Now I want to remove everything that is not used to start fresh. The problem is I can’t remember what is used and what is not. It’s a big project and I haven’t touch i the last year.
It’s now possible or I need to code something myself to do it?
HI,
You can select all the scenes that are used in your build and then right click and select option “Select Dependencies”. It should select all the assets that are used in your current build.
But it will not select some of the plugins you have used and editor scipts etc.
So if you want to remove images, prefabs, models, then you can use that feature.
I know its an old question but I just put a tool on the asset store that does exactly this. It runs through your build log and included scenes and returns all unused assets.
(It also shows you the file size of your included assets to enable you to minimize buildsize.)
I also wanted to clear unused assets. I created a few scripts to show (un-)used assets based on the works from New interface for removing unused Unity assets · GitHub
What it does is read the unity build log to find the assets that are really needed and thus also the assets that are unused.
The used and unused assets that are displayed can be filtered simply by selecting a folder in the project view. Works for me using Unity 5.5.0f3.