Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[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

    Unity Technologies

    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. Apex_Dev_03

    Apex_Dev_03

    Joined:
    Aug 18, 2023
    Posts:
    3
    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.