Instantiated Gameobject have "Blank script" / weird behavior

I got weird behavior with my build, certain gameobject like the the one below have their script icon blank and dont initialize correctly (They act correctly if i instantiate them from a Gameobject field directly / without the addressable system).

In this instance i load a scriptableobject containing the prefab i want to instantiate. (I did try to load the prefab directly but arrive to the same results)

Unity version 2020.3.38f (LTS) , Addressable 1.18.9
*Using Odin inspector

How i load most of the asset :

    public IEnumerator LoadAssetReference()
    {
        if (dataRef.Asset != null)
        {
            BattleEncounterData data = (BattleEncounterData)dataRef.Asset;
            prefabTest = data.EnnemyAI;
        }
        else
        {
            AsyncOperationHandle<BattleEncounterData> encounterAsyncOp = dataRef.LoadAssetAsync<BattleEncounterData>();
            yield return new WaitUntil(() => encounterAsyncOp.IsDone);
            prefabTest = encounterAsyncOp.Result.EnnemyAI;
        }
    }

The BattleEncounterData ScriptableObject :

First thought, do you have addressables folders (ergo entire directories marked as addressable) with the affected scripts assets inside of them?

If so, bring them outside of addressables scope, rebuild, and see how you go.

No i dont have any folders marked as addressable.

It looks the same for me, but everything still works fine on my end, so I never really researched it.

Sorry for being off topic but I didn’t know you can make a whole folder addressables without adding every object by hand :eyes: I will try that later, thanks for the hint

Yeah you can just select the folder in your project files; in the inspector there’ll be a checkbox to make the folder addressable.

I believe you can drag folders into your groups too.

I will try upgrading the project to 2021 LTS so i can have a newer version of the Addressable packager, will update the post with the result.

Update : No change will revert back to the previous version