I’m not sure what caused this to happen or why it’s happening now and not before, but I’m having issues with Multiple Platform Build when the audio source is Asset Bundles, where the bundles are loaded using Addressables.
Before, no matter what platform I was building for, all the TextAssets would be placed in /Assets/FMODBanks, and it appeared that Unity would automatically grab the correct banks for the correct platforms each time I would switch platforms. I could assign the files to an Addressable group and obtain them by Label.
However, now what I’m seeing is that when I refresh the banks, the folder structure has changed and I now have /Assets/FMODBanks/Desktop and a lot of desktop banks. The problem is that I don’t have any other platforms at all. Worse, when I try to load the Master bank, I receive an exception about not being able to find my BGM bus. It’s like the addressable label doesn’t work anymore.
What is supposed to happen when you configure a multiplatform build? Are you supposed to see a folder for each platform under your FMOD Assets Subfolder? Is FMOD intended to transparently swap the files out each time you change import targets? Why do I only have Desktop as a subfolder when I’ve got 3 platforms worth of banks?
Compare to before, this is what I used to see, and what used to work :
Hi,
Specific instructions for using Addresables
is explained under Unity Integration | User Guide.
How to set up your Unity project for Multiple Platform Build
is explained in Unity Integration | Getting Started.
No, it is just meant to be a folder relative to the Asset folder in which TextAssets are created, There shouldn’t be any folders in there.
Yes
That is interesting as it shouldn’t be there. To solve that, try resetting your FMODBanks folder. In the FMOD Settings, change the Import Type
back to Streaming Assets, which will delete the FMODBanks folder and its contents. Once that has been completed, change the option back and rebuild banks from Studio. That will repopulate the folder and hopefully be back to normal.
Thank you for the detailed response. I’d followed the documentation when I first set up the project, both regarding the Multiple Platform Build link as well as the Addressables integration guide. As mentioned before it worked for quite a long time, at least at first.
That is interesting as it shouldn’t be there. To solve that, try resetting your FMODBanks folder. In the FMOD Settings, change the Import Type
back to Streaming Assets, which will delete the FMODBanks folder and its contents. Once that has been completed, change the option back and rebuild banks from Studio. That will repopulate the folder and hopefully be back to normal.
Trying that did not yield any good results. I did eventually manage to resolve this problem though, by completely deleting the FMOD plugin from the project and reinstalling it, then setting up the project precisely as it had been before. The “Desktop” folder is no longer pulled into the Unity project, and the TextAssets are transparently swapped out each time I change platforms once again.
Good to hear the problem is solved, and thank you for sharing the solution!