Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ensomniac · Jan 14, 2017 at 05:14 PM · c#assetbundlewwwassetsassetbundles

How do you package/retrieve Asset Bundle Dependencies

We have hundreds of assets that are all bundled individually as separate asset bundles. Some assets or levels may use 1 or more of those asset bundles. Here is an example:

Assets:

  • 1001 - [gun.fbx, gun.png, gun.mat]

  • 1002 - [bullet.fbx, bullet.png, bullet.mat]

  • 1003 - [gloves.fbx, gloves.png, gloves.mat]

  • 1004 - [shoes.fbx, shoes.png, shoes.mat]

  • 1005 - [1001, 1002, space_level.fbx, space_level.png, space_level.mat]

  • 1006 - [1003, 1004, character_model.fbx, character_model.png, character_model.mat]

When I bundle asset 1006, for instance, asset bundles 1003 & 1004 are listed as dependencies, as expected. Although in the manifest, the full absolute path to that asset bundle on my hard drive is listed.

When I go to load asset bundle 1006, none of the objects from asset bundles 1003 or 1004 are included.

So my question is: How do I load the dependent assets (1003 & 1004) in theoretical asset bundle 1006?

Am I responsible for downloading each of the dependent asset bundles and unbundling them first? What if I have hundreds of dependencies - that doesn't seem like an efficient way to download content to my user's devices.

Is there a way to build asset bundle 1006 so that it simply includes all of the parts from asset bundles 1003 and 1004?

This is how I'm building the asset bundles at the moment:

 BuildPipeline.BuildAssetBundles ("Assets/AssetBundles/", buildMap, BuildAssetBundleOptions.None, BuildTarget.TargetPlatform);

Any help would be appreciated.

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 Fabien-LG · Jun 21, 2017 at 08:49 AM 0
Share

Hello, did you ever get a solution for this? I have the same issue of absolute path for dependencies.

avatar image ensomniac · Jun 21, 2017 at 10:53 AM 0
Share

@Fabien-LG Unfortunately we never found a solution. We reached out directly to Unity and offered to pay for premium support in order to figure out the solution or work with them to create one. Unfortunately, the cheapest they were willing to go for premium support was 6k a month with a 6 month contract, which sounded to us, unreasonable.

Our solution, ins$$anonymous$$d, was to manage this on our server - keeping intricate track of our own dependencies. When a particular asset is requested, our custom bundler code pings our server and first downloads and correctly unpacks all required bundles before downloading and unbundling the required bundle.

The disadvantages of this approach may be obvious and include tons of custom code and tracking, plus, in some cases, a TON of individual downloads for the user rather than just one.

The advantage of this approach is that our asset system can be a little bit clever in how and when it downloads assets. For instance, even though in my example above, asset 1006 requires 5 things including two other asset bundles, we may be able to get away downloading a few of them piecemeal while the user is idle, allowing a bit more flexibility.

To further explain the advantage, imagine a user needs to download a largish 100mb level consisting of 20+ individual assets. Traditionally, they would have to have their device on and chugging through that download. That might be undesirable and the download may fail because the user doesn't want to wait or for any number of reasons. With our system, we can download each piece, one by one, making the entire download easier to manage.

I don't know that the advantages outweigh the disadvantages, but it works for us. I, or course, wish that Unity would provide a better way for us to understand and manage Asset Bundles. $$anonymous$$aybe better documentation is all that is needed - I've read it all.

0 Replies

· Add your reply
  • Sort: 

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

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

Asset Bundle Prefabs missing textures & materials, but have geometry 1 Answer

Loading.IDRemapping AssetBundles 1 Answer

AssetBundles caching bug? 1 Answer

no extension method `LoadAssetAsync' of type `UnityEngine.AssetBundle 0 Answers

Multiple Cars not working 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