Prefabs marked addressable & added to new group dont include the materials & meshes (always missing)

2019.3.3f1 & Addressables 1.6.2

Having really strange problem, if I add a prefab to a new addressable group (by the Create Group > Packed Assets)
the prefab when loaded will not have any mesh or material assigned (likely missing textures too).

The group has the exact same settings as Default Local Group

When the prefab is moved to the Default Local Group, it loads in with the mesh and materials assigned.

I used to not have this issue when on 1.1.10 but then upgraded, and now all my addressable setup is broken & I’m having to attempt to recreate it all again.

Is the expectation that every texture, material, shader etc (every possible asset in use) must be placed in groups?

1 Like

OK I figured it out… I was still using an IASyncOperationExtension from way back & didn’t realize it was in use, it was calling Adressables.Release(handle) thus the loaded addressables were releasing their dependencies, but the instantiated game objects were stick around (thus the missing meshes and materials)

I guess at some point the Release behaviour may have changed with how references are managed, I’m not sure why it seemed to be working before.

2 Likes

Thanks for posting what the problem was, I just went through something similar and this got me to the root of it. It turns out I was calling .Release on an addressable prefab while still using an instance of it (i.e. created through Instantiate). I guess instances rely on the prefab they were instantiated from for references - which I didn’t realize.

1 Like