Search Unity

[0.8.4] Case 1153775 - UnloadAssetBundle failed when camera with some rendertexture is in prefab

Discussion in 'Addressables' started by chanon81, May 12, 2019.

  1. chanon81

    chanon81

    Joined:
    Oct 6, 2015
    Posts:
    168
    - Prefab has a camera that has a rendertexture assigned to it.
    - Prefab is loaded then released

    Exeptions:

    Assertion failed on expression: 'm_PreventLoadingFromFile != nameSpaceID'
    UnityEngine.AddressableAssets.Addressables:Release(GameObject)
    Test:Update() (at Assets/Test.cs:38)

    UnloadAssetBundle failed
    UnityEngine.AddressableAssets.Addressables:Release(GameObject)
    Test:Update() (at Assets/Test.cs:38)

    For some reason, this does not happen for all rendertexture files, but on files that it does happen it happens always.
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    thanks for making a case for this. we'll look into it
     
  3. FuhaoXie

    FuhaoXie

    Joined:
    Nov 18, 2016
    Posts:
    26
    I meet the same issue,I am using unity2018.4.11.f1, anyway to work around for now?
     
  4. Jackal256

    Jackal256

    Joined:
    Aug 18, 2023
    Posts:
    7
    We encountered this issue as well in 2019.4.40 with Addressables 1.21.18
    Removing the render texture from the asset bundle fixed the issue.