Addressables only loading when using Asset Database, not from Build.

Hi!

I recently did a big refactor on how my assets are loaded, basically grouped many of them inside Prefabs and I am loading these profabs with assets inside instead of each asset separately.

After I finished my refactor I realized the game build wasn’t working, and that all the time my game was working inside the editor I had the “Play Mode Script” setting set to “Use Asset Database”, if I change it to “Simulate Groups” or “Use Existing Build” the game won’t find my assets, giving me the following error:

NullReferenceException: Object reference not set to an instance of an object
Game.GameAssets+<>c.<_LoadBaseAssets>b__91_0

I’ve tried rebuilding my assets with the default build scripts, changing many settings, upgrading my addressable version, nothing works, I ran out of ideas, please help me :face_with_spiral_eyes:

I am using Unity 2020.03.18f1 and addressables 1.18.15. I’ve tried the game inside the editor and also building it both in Windows and Linux, always the same result.

Thanks for your help!

I found the solution to my problem in this post: Addressables.LoadResourceLocationsAsync returning null