Unity's webgl settings

Set full screen

Write in index.html

   body {
          width: 100%;
          height:100%;
          margin: 0;
          padding: 0;
          overflow: hidden;
      }
      html,canvas{
          width: 100%;
          height:100%;
      }
      #gameContainer {
          width: 100%;
          height:100%;
      }

webgl remove the mobile phone bullet frame

Remove the judgment of the mobile terminal in the UnityLoader.js file 

Join &&false after UnityLoader.SystemInfo.mobile

Replace loaded icon

Locate the installation directory

Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\WebGLTemplates\Default\TemplateData

Under progressLogo.Dark.png and progressLogo.Light.png, replace with the desired icon

 

 

 

Guess you like

Origin blog.csdn.net/m0_37981386/article/details/107813684