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 /
avatar image
0
Question by shadowpuppet · Jun 26, 2015 at 05:47 PM · simplify

discard unused objects

Is there a way, in unity, to discard unused elements? In Maya , for instance, there is a discard unused nodes or shaders from the edit pull down menu. it's just that this whole thing has been a learning experience and I have made a LOT of stupid scripts and gameobjects, reimported FBX files so many times that I have about 30 textures that are all the same yet only using one. I should have cleaned as I went but I didn't. I am assuming though that when you build the game all that extra junk gets weeded out. But is there a way to discard the unused elements while in edit mode

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Landern · Jun 26, 2015 at 05:49 PM

This would be a very dicey feature to include in Unity, particularly because you can dynamically load most things and unity would never know that they are used or not.

You will need to clean up your own work.

You can certainly use the the fact that you can find references in the currently loaded scene by right clicking the assets and select it from the context menu. But there isn't an automagically button to remove everything you're not using.

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 shadowpuppet · Jun 27, 2015 at 12:15 AM 0
Share

I figured, but as far as my question about the final build....does unity toss out stuff it doesn't need to optimize the game? FOr instance having 30 duplicate textures. I'm less concerned about seeing extra stuff in the editor as I am about having it slow down the game when built. I mean I started with the S$$anonymous$$lth tutorial and basically did a mod of that so there is a whole folder of scripts and models that I am pretty sure I don't even use but am afraid to delete. Thanks for your reply, by the way

avatar image shadowpuppet shadowpuppet · Jun 26, 2015 at 09:49 PM 0
Share

oops I posted in the answers rather than adding a comment, so here it is again in case it gets rejected by being in the answer field: I figured, but as far as my question about the final build....does unity toss out stuff it doesn't need to optimize the game? FOr instance having 30 duplicate textures. I'm less concerned about seeing extra stuff in the editor as I am about having it slow down the game when built. I mean I started with the S$$anonymous$$lth tutorial and basically did a mod of that so there is a whole folder of scripts and models that I am pretty sure I don't even use but am afraid to delete. Thanks for your reply, by the way

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

2 People are following this question.

avatar image avatar image

Related Questions

Begginers question, Simplifing a script, opening two doors with 2 overlapping triggers. 1 Answer

Character states using Unity animation system and StateMachineBehaviour 0 Answers

I apologize for the 'irrelevance' of this question... but? 0 Answers

Best way to make this code shorter? 2 Answers

how to make a game easier 2 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