Search Unity

Long loading time before splash screen on webgl game

Discussion in 'Editor & General Support' started by Pirke_23, Aug 27, 2021.

  1. Pirke_23

    Pirke_23

    Joined:
    Aug 24, 2021
    Posts:
    1
    Hi,

    We are developing a game via Unity WebGL. If we make a build and want to test it, we are facing an issue which is really annoying. So when the game starts, you get the splash screen, which is fine.

    But before we get the splash screen, there is a fixed screen, just in one colour without a loading bar or anything for about 30 seconds. So we are afraid players will leave because they might think the game isn't working.

    Is there something we can do about this? Can we remove, change,... that fixed coloured screen, so it's clear to the player the game is loading?

    Thanks for the response
     
  2. ElegantUniverse

    ElegantUniverse

    Joined:
    Sep 13, 2018
    Posts:
    63
    hello
    after you have built your project for WebGl, I suggest find the Index.html file right click on it and edit it to inform your user the game needs a short time to load, for example "please wait" in a html tag. something like this :

    <div class="fullscreen" onclick="unityInstance.SetFullscreen(1)"></div>

    <div class="title">please wait</div>
     
unityunity