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
1
Question by brain56 · Jul 11, 2012 at 02:06 AM · buildassetssizeculling

Does Unity cull away unused assets on build time?

Say for example I have twenty assets and I only use ten of them on my scene. Does that mean that the other twenty are excluded from the build (thus, a smaller, optimized size)?

If Unity does cull, how can I turn this feature off? Or is there an easy way of referencing certain assets so that they won't be culled away?

I'm trying to make an estimation build as fast as possible, that's why I want to have this done.

Thanks!

Comment
Add comment · Show 1
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 brain56 · Jul 11, 2012 at 01:06 AM 0
Share

By assets, I mean prefabs, 2D Toolkit sprite collections, scripts, etc.

1 Reply

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

Answer by Eric5h5 · Jul 11, 2012 at 02:49 AM

Depends; no scripts are excluded since there's no good way to tell what scripts are referenced or not. Other assets are excluded if they're not referenced, unless they're in the Resources folder. You can't disable this feature.

Comment
Add comment · Show 4 · 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 brain56 · Jul 11, 2012 at 04:53 AM 0
Share

So if I put the assets in the Resources folder, they'll be included in the build size, right?

avatar image Eric5h5 · Jul 11, 2012 at 05:13 AM 0
Share

Yes.      

avatar image brain56 · Jul 11, 2012 at 05:59 AM 0
Share

I've tried copying my assets to the Resources folder but now I can't build -- my $$anonymous$$ac just crashes. Any thoughts?

avatar image Eric5h5 · Jul 11, 2012 at 06:50 AM 1
Share

You can look at the console to see what the crash log says.

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

Should I delete all unused assets before build ? 1 Answer

Build size and sharedassets0.assets question. 1 Answer

Distribute terrain in zones 3 Answers

A node in a childnode? 1 Answer

Calling an XML outside of unity 1 Answer


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