Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
  • Help Room /
avatar image
8
Question by DarkPixel · Apr 09, 2014 at 03:14 PM · assets

Remove unused assets

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?

Comment
Add comment · Show 7
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 Tanshaydar · Apr 09, 2014 at 03:21 PM 0
Share

Just export your scenes and Unity will include every dependency. Import them into a new project and you are done.

avatar image HuskyPanda213 · Apr 09, 2014 at 03:42 PM 0
Share

Like said above. Unity will ONLY include things you need, for builds and asset packs.

avatar image DarkPixel · Apr 09, 2014 at 04:01 PM 0
Share

Good idea, but it import all the assets, even if they are used for not

avatar image Owen-Reynolds · Apr 09, 2014 at 04:35 PM 0
Share

I feel like the dependancy-picker has some ghosts. Take a Project with 40 scripts and a Scene using 6 of them. I can package that scene and consistantly get those 6, plus the same 12 extra scripts.

I can delete those extras, get no warnings, everything runs fine. 99% sure they aren't on a never-activated game object (and even so, the compiler would still give an error?)

I think maybe the Inspector is saving a long-since-deleted public scriptZ Z; value. Something like that. Or could just be a UnityFree problem.

avatar image mposwal · Apr 09, 2014 at 05:19 PM 1
Share

Take a look at this question: Find Unused Assets In Project

Show more comments

5 Replies

· Add your reply
  • Sort: 
avatar image
10

Answer by dhanrajsinh24 · Jul 23, 2015 at 12:54 PM

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.

Thanks.

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 ecv80 · Jun 26, 2019 at 05:19 PM 0
Share

thanks? :D

avatar image
6

Answer by KristianHJ · Nov 10, 2014 at 06:41 AM

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.)

Asset Hunter PRO

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
avatar image
3

Answer by achimmihca · Jan 02, 2018 at 07:43 PM

I also wanted to clear unused assets. I created a few scripts to show (un-)used assets based on the works from https://gist.github.com/karl-/4076464 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.

link text [1]: /storage/temp/108422-screenshot.jpg ![alt text][1]


screenshot.jpg (57.2 kB)
buildinfo.zip (4.5 kB)
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
avatar image
3

Answer by coolamigo · Jun 24, 2020 at 09:42 PM

Right Click the Scene (all of them selected) and export. Then import in a new project.

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
avatar image
0

Answer by honor0102 · Mar 04, 2019 at 01:23 PM

late but it may help someone else

try this:

https://github.com/unity-cn/Tool-UnityAssetCleaner (download and use cleaner.unitypackage)

i also noticed that they maybe get removed automatically in build(https://gamedev.stackexchange.com/questions/119907/would-i-need-to-delete-unused-assets-from-my-unity-packaged-build)

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 pamelacook · May 30, 2019 at 03:55 PM 0
Share

I just tried the tool from GitHub. I unchecked assets that I wanted to keep. The last update was made in April 2016 for Unity 5.3. I'm using Unity 2017.4. The tool crashed and shut down Unity.

The provided list was a fork of the link below. It was last updated for Unity 5.6. The same thing happened when I clicked the button to remove unused assets.

https://github.com/tsubaki/UnityAssetCleaner

Great idea for its time. I guess there are some paid solutions in the Unity Asset Store.

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

33 People are following this question.

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

Related Questions

OLD Unity package (Car tent with cockroach shader Salubrity) 0 Answers

When i try to imort package there is just one option is coming "custom packages..." 0 Answers

Do I need to accept the recommended project settings every time? 1 Answer

Unity re-importing small assets every time I click back into window 1 Answer

Are there any free Utility Theory assets like DecisionFlex? 0 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