Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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 Mazelpomme · Oct 05, 2017 at 09:54 AM · prefabassetbundlenested

Nested Prefabs in Asset Bundle

Hi I have an android project which is very heavy. Most of the weight comes from my scenes. As I understand it Asset Bundles could reduce the weight since all my scenes share the same prefabs but those prefabs are nested. I should therefore create an AssetBundle per scene and an AssetBundle containing all the prefabs and their dependencies. I have done it but the amount of gained space is quite low. I have been searching information about nested prefabs and assets bundles but found nothing so far. What I am doing wrong ?

Thanks

Edit : The extensive size of my scenes came from the Static Batching. No real solution here...

Comment
Add comment · Show 2
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 NoseKills · Oct 05, 2017 at 07:37 PM 0
Share

Have you unchecked or removed the scenes from build settings so that all the assets the scenes reference don't go into the build? $$anonymous$$ake sure you don't have a lot of assets under Resources folders.

avatar image Mazelpomme · Oct 06, 2017 at 02:19 PM 0
Share

Yup I've done that.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by FortisVenaliter · Oct 05, 2017 at 07:45 PM

Noooo... That is not at all what AssetBundles are for. AssetBundles are for delivering new content from outside the initial game installation. To download and integrate DLC, for example. It has no bearing on how fast content loads. And while it may reduce the initial install size, the player would still need to download the same assets, so the final size would be virtually the same as original (if not a bit more for overhead). In short, AssetBundles are simply not useful for reducing total install size.

What you actually want to do is go through your assets and see what you can do to reduce them individually. Movies and audio can be more tightly compressed for minimal quality losses (especially when talking about mobile speakers/headphones). Textures can also be better compressed, or you can remove useless or whitespace bits to make them smaller.

There is no magic button to reduce the installation size, unfortunately. Just be glad you aren't trying to deliver a AAA title on a DVD... That's a real work of magic.

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 Mazelpomme · Oct 06, 2017 at 02:23 PM 0
Share

Thanks for the heads up. But in the editor log Levels takes 50% of my build size.

avatar image FortisVenaliter Mazelpomme · Oct 06, 2017 at 04:24 PM 0
Share

Yes, because they include all assets that the level includes. If you move those assets into AssetBundles or Resources, it won't reduce their size, it will just change their deployment method.

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

92 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 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 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

Editor utility for handling nested prefabs.. 4 Answers

Re-load prefabs from assetbundles got null components 0 Answers

Howt to Replace uGUI with asset bundles 0 Answers

Nested Prefab 0 Answers

.Asset vs .Prefab vs. .Unity3d ? 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