ab包卸載報錯導致卸載不了。
Assertion failed on expression: 'm_PreventLoadingFromFile != nameSpaceID'
UnloadAssetBundle failed
出現截圖內容,官方解釋https://answers.unity.com/questions/1117351/unloadassetbundle-failed.html
翻譯過來就是,預設上有相機上的targetTexture不是空的,這個會導致卸載失敗報錯。
解決辦法就是,置空,然後在代碼內動態加載~