Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Build Folder files - where are they?

Discussion in 'WebGL' started by Bryan3D, Jul 30, 2020.

  1. Bryan3D

    Bryan3D

    Joined:
    Feb 14, 2013
    Posts:
    22
    I'm running Unity 2020.2.0a18 but have had the same problem with earlier versions. I think the problem is with my Player Settings for WebGL. According to the Unity page that describes the WebGL Player settings: (https://docs.unity3d.com/Manual/webgl-building.html) there should be 6 files generated in the Build folder:
    1. UnityLoader.js
    2. MyProject.json
    3. MyProject.wasm.framework.unityweb
    4. MyProject.wasm.code.unityweb
    5. MyProject.wasm.memory.unityweb
    6. MyProject.data.unityweb
    But the 4 (only) Build folder files I get are:
    1. MyScene.data
    2. MyScene.framework.js
    3. MyScene.loader.js
    4. MyScene.wasm
    So I haven't got enough files. And the ones I do have are the wrong kind :eek:)

    The funny thing is that the resulting web page loads, looks good and seems to be OK (no scripts are running to check behavior) but I'm unable to successfully upload and post it on other WebGL hosting sites.
     
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    376
    You are looking at the wrong documentation page, you are running the alpha version. Look at the one for 2020.2 / 2020.1 not 2019.
     
  3. Bryan3D

    Bryan3D

    Joined:
    Feb 14, 2013
    Posts:
    22
    Thanks for that! It turns out that I was unable to generate the correct WebGL Build files with 2020.2. So, I used 2019.4.5f1 instead. And all works just fine!
     
  4. Durium

    Durium

    Joined:
    Feb 1, 2020
    Posts:
    30
    Any ideas where the build file is located? :)