I recently added the FMOD Studio Unity integration to our project and it has all been working great apart from one thing, our automated builds are missing all of the soundbanks.
Our project is set up to use the “Streaming Assets” import type, and is linked to the fmod project via the project file path. This all works correctly when running in the editor, switching platforms and making builds from the editor, in all of these cases the banks are copied over to StreamingAssets as expected.
Our automated build process runs Unity with the -batchmode commandline parameter and a custom build script executed via -executeMethod. It’s the batchmode parameter that seems to be what is causing the copy step to fail, the banks and StreamingAssets folder are missing from both the Assets directory and the build output in these builds. I’ve worked around this for now by calling FMODUnity.EventManager.UpdateCache() and FMODUnity.EventManager.CopyToStreamingAssets() from our build script before it makes the player build, but it seems like a bit of a hack. I think the issue is that the EditorApplication.Update event used in the EventManger script doesn’t seem to ever get triggered when running Unity in batchmode, so this copy step never runs as it usually would.
Is this a known issue? Is my workaround going to be sufficient to solve this?
ps. I’m running Unity 5.6.1p1 and Fmod integration 1.09.05, and the builds I’m making are all Win64 builds.