I am working on a game using FMOD and Unity. This game will be released for Desktop (Win) and WebGL. In FMOD Studio I already setup the two different platforms with seperat adjustments. When I built the soundbanks in FMOD Studio I got the two folders with the soundbank in the /Build directory “Desktop” (30mb) and “Mobile” (8mb). So far so good.
When creating a windows build in Unity everything is fine. FMOD copies the soundbank from the “/Desktop” directory to the “Assets/StreamingAssets” directory. When switching to WebGL, the first thing I noticed is that FMODUnity.EventManager also copies the bank from the “/Desktop” directory. When creating the build for WebGL, i have a StreamingAssets folder with the 30mb soundbank that is intended for the desktop platform only.
It seams that FMOD ignores the mobile platform for the build, even when I select “mobile” for each bank platform in the FMODStudioSettings. I guess I can manually change the files in the streaming assets, but I don’t think this is the right approach.
Is there a way to fix this?
Thank you in advance.
Edit: Additional information: I only use the master bank. No error messages occurred during the workflow.