# Streaming Assets Error on Unity WebGL build

**URL:** <https://qa.fmod.com/t/streaming-assets-error-on-unity-webgl-build/19061>\
**Category:** Unity\
**Tags:** html5, unity\
**Created:** [July 27, 2022, 8:43pm UTC](https://qa.fmod.com/t/streaming-assets-error-on-unity-webgl-build/19061 "2022-07-27T20:43:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasharp108](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jasharp108](https://qa.fmod.com/u/jasharp108)\
**Post date:** [July 27, 2022, 8:43pm UTC](https://qa.fmod.com/t/streaming-assets-error-on-unity-webgl-build/19061/1 "2022-07-27T20:43:11Z")

</div>

I am trying to get started with FMOD for a Unity WebGL game, and I have been testing with the bouncing ball example found here: [GitHub - fmod/unity-html5-demo: Demonstration of the correct way to load banks for HTML5 within Unity using the FMOD For Unity integration.](https://github.com/fmod/Unity-HTML5-Demo)

That demo works fine in editor, and works fine when I build and run for WebGL. However, when I upload the build to a website for testing I see the following error when I attempt to load the banks

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3312cb9630b0f096a4d7c11b97a7e8b91e32a97f.png)

While tracking down the issue, I get the same error if I just try to print out the Application.streamingAssetsPath value that is used for Platform.GetBankFolder().

How should I be loading in banks for a webgl build? Is there some setting on the website itself I need to change?

Unity version is 2020.3.16f1 and fmod version is 2.02. Unity 2021 also failed in the same way.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [August 1, 2022, 6:01am UTC](https://qa.fmod.com/t/streaming-assets-error-on-unity-webgl-build/19061/2 "2022-08-01T06:01:20Z")

</div>

Hi,  
I was not able to replicate the issue after uploading the Demo to the web. However, we check some things to ensure the `banks` are being loaded in.

Check we are using the right `source type` in the `Bank Import` settings. Begin by opening the FMOD Settings found under the Unity toolbar → FMOD → Edit Settings. What we want to take note of the `source type` we have selected. Make sure it is set to `Single Platform Build` from the drop-down menu.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/1733f426c081297eac55dfb6ee4030f8c4903da4.png)

Then we will want to check the `Build Path` option is set to the folder containing the `banks` for the Demo. Which is located at `Project Folder/Assets/HTML Demo/Banks`.

That is a good place to start when checking if the `banks` are being loaded in. Have you altered the supplied code in any way? If so there may be a problem there, could you please supply code snippets of any changes you made?

Hope this helps!

---

<div class="post-metadata">

**Author:** ![jasharp108](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jasharp108](https://qa.fmod.com/u/jasharp108)\
**Post date:** [August 1, 2022, 3:06pm UTC](https://qa.fmod.com/t/streaming-assets-error-on-unity-webgl-build/19061/3 "2022-08-01T15:06:30Z")

</div>

I haven’t changed the demo code at all, I was just attempting to get things working online. I will double check the build paths and source type when I have a chance to get back this.
