Be in trouble

Build what you created with Unity with WebGL,Referenced siteSelect the folder containing index.html in Web Server for Chrome, start the server, andhttp:// clicked, but the game title etc. are only displayed below, but the game screen is not displayed. What should I do?

I've tried it with both "Microsoft Adge" and "Google chrome", but I don't see either.

Error messages in DevTools Error message translation (DeepL)

· Resource loading failed: Server responded with 404 status (Not Found)
-ReferenceError that was not caught. UnityLoader is not defined
At (index): 12
-TypeError that was not caught. Unable to load property'SetFullscreen'.
at HTMLDivElement.onclick ((index): 20)
DevTools failed to load his SourceMap. Could not load the contents of.

Contents of Build folder

The contents of the Build folder specified in Web Server for Chrome.

Contents of Template folder Result of reloading on the Network tab

I found that the file UnityLoader.js had the errors "Failed to load response data" and "Nothing to Preview".

AndURL of the fileWhen I accessed, I got the error message "entry not found: /Build/UnityLoader.js".

version information

Unity 2019.2.12

PC specs

Windows10 64-bit
Processor: Intel (R) Core (TM) i5 CPU M 480 @ 2.67GHz
Mounted RAM: 4.00GB (3.80GB available)

  • Answer # 1

    I will rip it in the answer column to attach an image.

    In this way, create a "Build" folder in the same location as the index.html and TemplateData folders, and in this "Build" folder,


    All * .unity web files

    * .json file

    Please move.

    I think it will work.

  • Answer # 2

    I tried to do the same thing before, but it worked when I changed the project name of unity from Japanese to alphabet. (It's chrome) It may not be helpful, but if the project name is Japanese, please try it.