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. Dismiss Notice

Localization addressables being deleted

Discussion in 'Localization Tools' started by abegue, Jul 5, 2021.

  1. abegue

    abegue

    Joined:
    Jan 28, 2019
    Posts:
    24
    Hello,

    Not sure what are the conditions but most of the time, my localization data (from StreamingAssets/aa) are deleted when starting a second/x build.

    To be clearer:
    - build Addressables
    - build project
    - everything works perfectly
    - continue development (without touching anything relative to the localization or addressables)
    - build project
    - may or may not works

    When it fails, it is because the localization data are not in the build and Addressables fails to load them.
    Opening the resulting .apk shows me that there is no "assets/aa" directory.
    It might be an Addressable issue instead of a Localization one but I am not sure.
    My other assets in StreamingAssets are correctly integrated in the .apk.

    Unity used: Unity 2021.1.7f1
    Localization packages tested: 0.11.0 and 1.0.0-pre.9
    Target platform: Android Mono/IL2CPP, Development/Release (more specifically Oculus Quest 2 but it shouldn't make any differences).

    I won't have time to create a new clean project that may reproduce that behavior, but another colleague (on another project) suffers from the exact same issue.

    Also, I followed the guidelines of the Troubleshooting Addressables Issues post but still, no luck.

    Any idea?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    We dont do anything custom to Addressable during a build so it does sound like an Addressables bug.
    When you continue development are you always using the same machine? Do you delete anything in the Library directory? The built addressables are store in Library and copied across during the build so if they are still present it should be working.
    Next time it fails can you check if the Addressables are in the Library/com.unit.addressables directory?
     
  3. abegue

    abegue

    Joined:
    Jan 28, 2019
    Posts:
    24
    Thank you for your answer!

    I continue my development on the same machine. I do not delete anything in the Library myself (maybe a third party tool does but I don't think so).

    These days, I have to write documentation so I am not excessively doing changes and new builds but I will tell you if the issue occurs again (" no luck today ": everything worked!). I will watch carefully the Library/com.unit.addressables to give you new information.
     
    karl_jones likes this.
  4. abegue

    abegue

    Joined:
    Jan 28, 2019
    Posts:
    24
    Went back to doing builds \o/

    I met the issue again. Here are the informations:
    - opened Unity
    - presence of Assets/StreamingAssets/aa that contains localizable tables
    - run build
    - Assets/StreamingAssets/aa is deleted
    - The localization tables are still in Library/com.unity.addressables/aa

    It really looks like an Addressable issue indeed... Should I ask on the Addressables forum?
     
    karl_jones likes this.
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Yeah it does sound like addressable. Maybe worth filing a bug report.
     
    abegue likes this.