- Home /
Question by
ajinkyanazare · Feb 24, 2016 at 07:08 PM ·
unity5webglserverside
WebGL Build throws a 404 Not Found error for UnityLoader.js on the server, what am I doing wrong?
I have a game that runs fine on Android and iOS (I am using Unity 5.3.2f1 Pro). I tried a webgl build for the same project and it at least shows me a loader (from the default unity template) when i run it locally. But after I upload it to the server, I get a 404 Error not found for a file called "UnityLoader.js". I think it has something to do with the template file, but I'm not sure. My folder structure is as follows:
WebGLBuild
--Released
----few compressed files that with extensions that end in "gz"
----UnityLoader.js (THIS IS THE FILE THAT GIVES OUT THE 404)
--StreamingAssets
--TemplateData
--index.html
What am I doing wrong? Is there a different setting that I'm missing or this is a server-side issue? Any help would be appreciated
Comment
@ajinkyanazare, I have the same issue.
Any ideas on a solution?