Addressable not wokring after building

Hi, I’m currently experimenting with Addressables. I’m using the default pre-setuped addressable settings and It’s just won’t work after building my project. Using Unity 2020.3.16f1

using System.Collections;
using UnityEngine;
using UnityEngine.ResourceManagement.AsyncOperations;
using UnityEngine.AddressableAssets;

public class AssetLoader : MonoBehaviour
{
    [SerializeField] AssetReference reference;

    private IEnumerator Start()
    {
        var handle = Addressables.LoadAssetAsync<GameObject>(reference);

        yield return handle;

        if (handle.Status == AsyncOperationStatus.Succeeded)
        {
            Instantiate(handle.Result);
            Addressables.Release(handle);
            Debug.Log("Success!");
        }
        else
            Debug.Log("Failed to load!");
    }
}


you marked this as resolved but you didn’t posted the solution? What’s the point of using a forum if you don’t share…

Apologize. The solution of this problem is to build the Addresssable content first (Addresable Groups → Build → New Build → Default Build), then build the actual game. I thought this function was automatic, but it’s not.

There’s a setting in editor preferences that governs this.

Can you show where and which version this feature located? I’m using the Verified 1.16.19 version, and I did not manage to find it.

9158906--1273949--settings.png

Where all the other editor preferences are: Edit → Preferences

What is your editor version? (Mine is Unity 2020.3.16f1)

9159380--1274015--no feature.png

I think it’s a 2021+ setting.

The screenshot was from the latest 2021.3 version.

Yep, that was the problem. I updated my editor and now its working properly. :smile: