Search Unity

[Solved]Unity 2020 WebGL build fails to load

Discussion in 'Web' started by Shack_Man, May 5, 2020.

  1. Shack_Man

    Shack_Man

    Joined:
    Jun 7, 2017
    Posts:
    372
    Edit: Solved it! https://forum.unity.com/threads/sol...ntaxerror-invalid-or-unexpected-token.872581/

    I followed a 2D shader graph tutorial and used the URP in 2020.1.0a22, but when I upload the build the loading bar gets stuck around 4/5th of the way (I tried Newgrounds and Kongregate).

    So I made a new 2D project in 2020.1.0b7, didn't import the URP nor any packages, added nothing but one sprite to the game, but when making and uploading the build it's the same error.

    I tried to disable data caching, same error.

    Any idea on how to solve this? I would love to use 2D shader graph for webGL.
     
  2. Philplays

    Philplays

    Joined:
    Feb 9, 2020
    Posts:
    1
    Do you mind sharing how you solved it ?
     
  3. B4ttleCat

    B4ttleCat

    Joined:
    Mar 31, 2014
    Posts:
    18
  4. Tunztunztunz

    Tunztunztunz

    Joined:
    Jan 7, 2016
    Posts:
    8
  5. bartvandalen

    bartvandalen

    Joined:
    Sep 9, 2021
    Posts:
    1
    Same here, I turned off compression, made the textures as small as possible, but still the loader doesn't get past 90%...
     
  6. Metaverse62336

    Metaverse62336

    Joined:
    Nov 24, 2022
    Posts:
    1
    So i had the same issue. I solved it by doin the following:

    -Delete data base from indexDB.
    -Clear local storage.
    -Clear session storage.
     

    Attached Files: