Search Unity

Point Addressables API to PersistentDataPath instead of StreamingAssetsPath

Discussion in 'Addressables' started by JakHussain, Feb 5, 2019.

  1. JakHussain

    JakHussain

    Joined:
    Oct 20, 2016
    Posts:
    318
    Like the title says, how can I define a load path that is to be found in the persistent data path? The default configuration builds and loads from streaming assets but this path doesn't exist on android.
     
    arufolo-wellovate likes this.
  2. HereIAmItsMe

    HereIAmItsMe

    Joined:
    Jul 16, 2012
    Posts:
    11
    arufolo-wellovate likes this.
  3. luvcraft

    luvcraft

    Joined:
    Aug 22, 2011
    Posts:
    76
    Did you have any luck with this? I'm trying to load addressables from persistentDataPath on Android and it can't load the addressables. Don't know if I'm setting something wrong, or putting the addressables in the wrong place, or what.

    EDIT: I got it working! The missing ingredient was to use
    {UnitynEngine.Application.persistentDataPath}
    instead of just
    {Application.persistentDataPath}
    .
     
    Last edited: Nov 23, 2019
    arufolo-wellovate likes this.