Search Unity

Starting with Asset Bundles, very confused

Discussion in 'Asset Bundles' started by CDF, Nov 28, 2017.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    Hi, so I need to use Asset Bundles for a project. Never used them before, so looking to get started.

    I'm a little confused about what libraries I need and what the best practices are.
    I see there's the "Asset Bundle Browser", "Asset Bundle Graph" and "Asset Bundle Manager"
    From what I understand, I use the Browser to create the bundles and the manager to load them.

    I'm using 2017.2 and when I download the Asset Bundle Manager from here: https://assetstore.unity.com/packages/tools/utilities/assetbundle-manager-example-scenes-45836 or here: https://bitbucket.org/Unity-Technologies/assetbundledemo I get a bunch of errors complaining about the Web Player not being supported anymore. The whole package looks very out of date. Looks like it's using the old WWW class instead of the new UnityWebRequest. As mentioned here: https://unity3d.com/learn/tutorials...ssetbundle-fundamentals#Loading_Asset_Bundles
    There's just a lot of docs and libraries scattered all over the place, and I can't figure out what libraries / documentation to use. Should I not use the Asset Bundle Manager and write my own?

    I'm also not clear on the Asset Bundle Graph tool. Do I need that?
     
  2. nilsk123

    nilsk123

    Joined:
    Dec 13, 2016
    Posts:
    19
    The assetbundlemanager is the 'clientside code' which downloads manifest and assetbundles. In my opinion, it should be seen as a reference / example implementation, but by no means a final product. The manager is poorly written, not object oriented / event driven, and as you found out already uses deprecated API's (although if i remember correctly the WWW class is just a wrapper for unitywebrequest these days)

    Use it to learn about how the assetbundle mechanism works, but when you do, write your own.

    As for the asser bundle graph / browser tools, you don't necessarily need them. You can build bundles by using an editor script or just settings the assetbundle field in the inspector.

    https://unity3d.com/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager

    Is your best source of information, although incomplete.
     
  3. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    Ah ok. Thanks for the help.

    The browser works really well, so guess I'm off to build a bundle manager.