Problem with AssetVundle and ScriptableObjects
I'm currently working on an interactive learning game where each scene has a lesson and a game.
Each Scene has a ScriptableObject for lesson data (audioclips and text) and another for game data (audioclips and texts).
I bundle the scene as 1 AssetBundle and the lessons and game SO as another AssetBundle. In order words, the 2 AB per scene.
In another class, I have a static instance of the Scriptableobjects. When I press a button to load a scene, the downloaded scriptableobjects are assigned to the static instances defined above. Most times, it works just fine and I am able to use the same class for loading and unloading different scenes and related scriptableobjects.
The problem is it's unstable. First, I notice that when I call AssetBundle.Unload(true), it unloads the Ab as the scene goes dark but I can still see that the texts from the scriptableobjects are on the scene. It eventually goes away when I load another scene and the assets are replaced. My major issue is that sometimes, it fails. For example, when I load a new scene, I get an error as the old SO is still being referenced hence, the new ones are not loaded.
Please can anyone help with the issue?
Your answer
Follow this Question
Related Questions
AssetBundle Manager Doesn't fetch assetBundle on Andriod 0 Answers
Asseatbundle Local Download for android path problem 0 Answers
Asset Bundle error 0 Answers
AssetBundle Textures not loading 0 Answers