I don't know if this is what you mean, but have you tried clicking on it and then pressing command + delete/backspace?
Unity already only puts the needed assets in a built game depending on what scene is used etc. Is that what you mean?
I think Cgoran means that when Hes cranking along, churning out the work, he finds he has 5 million assets, and loses track of whats actually used. Clearing out all the assets that hes not using is what I wish for this week too... So the project loads quicker. Yes I could have better work habits.....But deleting or even selecting ALL unused assets with one click would be kinda helpful... AC
Or perhaps, take a page from Flash's book and have a button that will select all unused items. That way you could simply see what is unused or take an extra step and hit the cmd-delete combo and delete all the selected items.
This happens to me. I like to experiment so I often end up with several slightly different versions, especially when dealing with scripts. Then I don't want to delete anything just in case I delete the wrong one, which I have done So, it would be great if we could have an option to delete all unused assets, or, an options to move those assets to a different folder which could be perused later. The selecting of unused assets would also be nice. It seems this capability is there, just that it is being used differently. Doesn't Unity produce a list of all assets that are in a build?
It might be kind of hard to do this with some assets though. For instance, since prefabs often aren't instanced anywhere at runtime, but rather are instanced during execution by scrtipts, the only way the Unity editor could know that a given prefab isn't being used would be to parse all of the (currently used) scripts in your project. And all of the assets in your project (ie. textures, models, sounds) that are only used in prefabs would just add to the problem.
Yeah, I guess it's symtomatic of hecktic pace and poor work habbits, but It would be nice to be able to highlight any assets that are not being used by the project, to target them for removal.
Not quite what you asked for, but if you look at your console.log file after building your exectuable with Unity, you see a list of the assets that were used. You could use manually that list to double-check before deleting something.
Just +1ing this wish. Some of my projects have gotten so big and out of hand its just too daunting to clean manually... and easier to abandon the project.
Just wrote a blogpost about an editorwindow I wrote to fix this. It lists all unused objects, based on what it finds in the editor log. http://zaxisgames.blogspot.com/2012/02/automatically-locate-all-unused-assets.html
lo normally it should be standard.... well when did the tread start ??? how long is that ago ? so i don't know but ... i have a feeling that this will never be ... delete unused assets from project that should be standart !!!
Our blog is getting quite alot of hits from here after I posted the tool. The fourth most refering URL to our blog is actually this thread. I guess thats an indication that this is something we as developers want as standard in Unity. The tool is ok, but it could be implemented alot more elegantly since it solely relies on the build log.