Search Unity

Question Use sdcard/Download as Local.LoadPath on Android? Quest ArborXR Issue

Discussion in 'Addressables' started by nocanwin, Jul 27, 2022.

  1. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    I want to use ArborXR to distribute a Quest app, but I'm running into an issue. I have my Local.LoadPath setup as sdcard/Android/obb/com.company.product/ and it works great. My obb and bundles all get installed here and everything runs fine. Unfortunately ArborXR can only install the obb to this location, not the bundles. They get a write permission exception when they try to. Instead, they want the bundle files to be installed in something like sdcard/Download. Unfortunately when I set my Local.LoadPath to sdcard/Download I get an "Invalid Path in AssetBundleProvider" exception.
     
  2. AlanPT

    AlanPT

    Joined:
    Jul 31, 2013
    Posts:
    32
    Hi Nocanwin, Did you come across a solution? My OBB don't seem to get read, but it works when I build straight from Unity. And as far as I can tell, the files are going to the same places.
     
  3. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    Setting the Asset Group to this fixed the issue for me. It packs the bundles into the obb.
    Build Path: C:/MyProject/Assets/StreamingAssets
    Load Path: {UnityEngine.Application.streaminAssetsPath}
     
    AlanPT likes this.