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 :