(Case 1350105)Unloaded assets which referenced by MonoBehaviour is still null after reloading prefab

Hi. I found that the issue related to asset memory management.

Here is example:

  1. Prefab A has MeshFilter (reference to Mesh A) and MonoBehaviour (also has the field of Mesh A).
  2. Load Prefab A from assetbundle and unload Mesh A by using Resources.UnloadAsset().
  3. Re-load Prefab A from assetbundle, in this time MeshFilter has live Mesh A (correctly re-loaded) but MonoBehiavour has null reference.

Minimal reproducible project was sent as Case 1350105.

1 Like

Thanks for the report @Kichang-Kim , we’ll look into it!

1 Like