Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unclear path to the bundle

Discussion in 'Asset Bundles' started by MorganYT, Dec 5, 2022.

  1. MorganYT

    MorganYT

    Joined:
    Jul 29, 2017
    Posts:
    31
    Hi, I need to load AssetBundle from the cache folder(AssetBundle.LoadFromFile) on android. When I download the UnityWebRequestAssetBundle.GetAssetBundle the bundle is in the AssetBundleName/0000...01000000/__data folder. How to get a normal path to the assetbundle without the folder with zeros or manually set the path to download the bundle?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,722
    If you are using caching version of UnityWebRequestAssetBundle.GetAssetBundle, just do that same request all the time, it will load from cache if available and download when not available.