简体   繁体   中英

How to remove unity build-in loading screen in Facebook instant game?

I am working Facebook instant game using unity2017.2. I deployed build for Facebook and uploaded it on Facebook. Everything is fine but when instant game start there is unity loading bar appears which take 8,9 seconds even if you have just one scene with one button in your game. So how can i remove that build-in unity loading screen. Please help. Thanks

https://i.stack.imgur.com/0IodM.png

Yup, it's a little bit frustrating to see a logo for a long time. I've worked on Unity version 2018.31f, and there, it's easily removable if you are using Unity Pro.

To remove the logo in Unity Pro , open your Unity WebGL project, Go to File -> Build Settings -> Player settings . You'll see settings for WebGL and a Splash Image column in that window, as shown in this picture.

在此处输入图像描述

As you can see in Splash Image settings, show splash screen column is inaccessible for me to tick/untick. The same goes with Show Unity Logo. This is because I'm currently using a free version of Unity. But in the Unity Pro version, you can untick this option and make that Unity Logo screen hidden.

If you are using the Unity free version, ensure a minimum Logo Duration of 2-sec , at least in the accessible version of Unity.

It is not possible to skip the whole loading screen. As mentioned in the comments you can modify your UnityLoader.js - you can find this script in the Build folder of your build.

To read the code I recommend this beautifier

I just opend my build and found the object Progress in line 1849. Perhaps you have a different version and it is at a different line. Search for Progress

Here you can see what Unity is doing. In the Progress.update they are updating the ProgressBar.

At all it is not easy to read.

The easy way to customize you loading screen is to replace the graphics under TemplateData - here you can copy your own pictures. The names have to be the same as the original filenames: (default is light)

  • progressLogo.Light.png
  • progressFull.Light.png
  • progressEmpty.Light.png

I think this could be a solution for you?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM