Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Bill 2 · Nov 06, 2011 at 10:50 PM · duplicateunused

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by KristianHJ · Feb 15, 2012 at 01:06 PM

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bill 2 · Feb 15, 2012 at 09:08 PM 0
Share

Looks great - thanks for sharing.

avatar image
5

Answer by vivalarosa · Nov 06, 2011 at 10:59 PM

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!

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bill 2 · Nov 06, 2011 at 11:58 PM 0
Share

great tip - thanks.

avatar image Retko · Jun 09, 2013 at 12:50 PM 0
Share

Just tried it, but it dodnt include standard assets, specificaly particles... Do you know why???

avatar image
0

Answer by AvPerov · Jul 16, 2021 at 06:36 AM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Copying/combining objects in unity? 1 Answer

GUI Bug in compiled game. 0 Answers

Creating a 3D trail 1 Answer

Procedural Low Poly Terrain 0 Answers

Unity Duplicate Event 5 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges