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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question It possible to remove or skip the loading progress on Unity Webgl

Discussion in 'Web' started by thankhuya4, Mar 7, 2023.

  1. thankhuya4

    thankhuya4

    Joined:
    May 29, 2022
    Posts:
    4
    upload_2023-3-7_9-50-57.png
    Hi everyone, I am new at Webgl and my boss want me to remove the dark screen and the Unity loading progress on Unity Webgl. I try to custom loader.js.file but with my experience in javascript I cant do much. But what i can see hear is loader.js.file is trying load something. So it possible to remove or skip the loading progress so user can go straight to my game.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,316
    There are best practices on improving WebGL load times, follow those. Some examples are found on the Unity blog, should come up on top in google searches. That said, expect a minimum load time of 5-10 seconds for most apps.

    If it's about the visual presentation of the loading screen itself, you can modify that in the WebGL HTML template. That's explained in the manual. On the store you'll find some WebGL templates too.

    You can even go as far as hiding the loading screen entirely by overlaying a javascript/html element and animate that with javascript. However I only know that it is possible but not how.
     
    thankhuya4 likes this.