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

Bug [1.10.0] BuildScriptFastMode broken with built-in addressables in Resources/*

Discussion in 'Addressables' started by jeffr0tull, Jun 8, 2020.

  1. jeffr0tull

    jeffr0tull

    Joined:
    Apr 23, 2020
    Posts:
    5
    Hello,

    I recently upgraded our addressables package from 1.7.5 to 1.8.3 but noticed the m_InternalIds changed in the generated catalog_BuildScriptFastMode.json to exclude file extensions for addressables in our Resources/* dirs. This breaks loading the addressables at runtime since AssetDatabaseProvider calls AssetDatabase.LoadAssetAtPath() which requires the full path - including file extension.

    I believe this bug was introduced in the change near line 160 in BuildScriptFastMode.cs (see GatherAssetsForFolder)

    Thanks,
    Jeff
     
    magmagma likes this.
  2. jeffr0tull

    jeffr0tull

    Joined:
    Apr 23, 2020
    Posts:
    5
    This bug is also still present in 1.9.2
     
  3. jeffr0tull

    jeffr0tull

    Joined:
    Apr 23, 2020
    Posts:
    5
    still occurs in 1.10.0
     
  4. magmagma

    magmagma

    Joined:
    Oct 27, 2017
    Posts:
    41
    I think I experienced the same bug after upgrading from 1.3.8.
    There was one part in the project where we were loading a few things from the built-in group. It stopped working as soon as we updated addressables.

    A temporary fix was to move the data to a normal addressables group, but it took my by surprise.

    I even thought maybe I had misunderstood how to use the system. At least now I know somebody else had the same problem.
     
  5. jeffr0tull

    jeffr0tull

    Joined:
    Apr 23, 2020
    Posts:
    5
    Yup, I see the exact bug and when it was introduced. I've modified the package locally to fix our issue in the interim
     
  6. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
    Thanks for flagging, @jeffr0tull - if you haven't, please submit a bug report for us. I'll also forward this to the time, and pass along any insight they have.
     
  7. joe_nk

    joe_nk

    Joined:
    Jan 6, 2017
    Posts:
    67
    Getting this too. I've worked around it modifying a local copy of the Addressables package. Would like a fix as it is currently the only reason I've made a local copy of the package.
     
  8. jeffr0tull

    jeffr0tull

    Joined:
    Apr 23, 2020
    Posts:
    5
    @TreyK-47 - I will be happy to submit an official bug - how do I do it? I thought posting here with the Bug Tag was sufficient
     
    joe_nk likes this.
  9. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    541
    Use the integrated bug reporter in the editor. In the menu tabs: "Help/Report a bug" and the tool opens.