Search Unity

Resources.Load or Assetbundle

Discussion in 'Asset Bundles' started by Mickeysmith, Jan 4, 2021.

  1. Mickeysmith

    Mickeysmith

    Joined:
    Sep 19, 2018
    Posts:
    4
    Hello,everyone.
    I'm developing an app for Android.

    If I use assetbundle, the size that users download will be reduced.

    But, when they are cached on disk, I don't know how much capacity it will be.

    In Android apps, resources are compressed when making an apk.

    Which is better, resource or assetbundle, for the actual app size on the device?

    If you know, could you please tell me?
    Thank you.
     
  2. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    195
    In my experience AssetBundles are always smaller, because they have LZ4 compression anyway. I'm not sure about the difference between the APK and AssetBundle's compression ratio, but I would guess the difference is negligible.

    Also, using Resource will incur some freezes at startup if there are too many files in there, because Unity has to index them all before the game can start. There are a lot of other downsides to using Resources like patching, but using Resources is easier I guess.
     
  3. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    195
unityunity