Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

SteamingAssets with Andoid bundle

Discussion in 'Scripting' started by CoffeeAddict, Jul 14, 2019.

  1. CoffeeAddict

    CoffeeAddict

    Joined:
    Jul 14, 2019
    Posts:
    1
    I'm having some trouble with getting StreamingAssets to load when I build my app as an app bundle.

    I have some text files with JSON data in them that loads fine when I run in the editor, and when when I build the app as an apk.

    The problem is when I build an app bundle to release on Google Play, the StreamingAssets no longer load.

    I have tried using both UnityWebRequest, and the BetterStreamingAssets package from the asset store.
    these both work in the editor and as an apk, but not as a bundle.

    Has anyone else seen this? Is there some permission that needs to be on the android manifest?
    Is "Application.streamingAssetsPath" returning the wrong value for an app bundle?

    I just very confused here, and any help is appreciated.

    Thanks!
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    2,212
    I think this is a bug. Likely an already known one, but probably won't hurt if you reported it.
    Thanks.