Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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.