Hello,
Our project has a collection of scenes whose assets are loaded in using Asset Bundles (WebGL). We are creating an asset bundle for each chapter of our game. When we load a new chapter, we unload the previous chapter’s asset bundle and load in the new chapter’s bundle. However, some scenes are used in multiple chapters, and thus, their assets need to be stored in multiple asset bundles.
From what I can tell, one asset can only map to one asset bundle. Am I correct, or did I misunderstand something?
This process is being automated in a script which outputs everything needed for a WebGL build. It is being used as part of a game engine for multiple games, and thus needs to remain as clean as possible … without the need for anyone to ever have to think about this once the automated system is in place. Currently, we put the assets in folders with the same name as the scene, and the script knows to add all the assets found in the folder to each chapter’s asset bundle the scene belongs to.
Is there an official way to have one asset included in multiple asset bundles?