- Home /
Unity Splash stays for 15 seconds then loads level (after porting to Unity5).
THIS IS A SERIOUS ISSUE FOR ME When I launch the game Unity Splash Stays for like 10-20 seconds. Then the first scene loads which is a Splash Scene and has nothing but a single image and a script to load the next level. I tried building the Splash Scene with both NGUI and Unity UI in the first case the case the first scene got loaded and the app stuck there. In Unity UI its stuck on Default Splash.
Im testing for Android and i made builds from both Unity 5 personal and pro edition. The devices on which i have tested the builds are Galaxy S3, Note 2, LG G3, and some tabs. Its the same on all devices.
Moreover the Aplha version on the game is already in the market which was built on Unity 4 and the whole game took 1-3 seconds to reach the 2nd Scene(default splash->splash scene->loading scene). Now its around 20. I cant upload a build like this.
I tried putting logs in the scripts and profiled the app too but to no avail. They show nothing i.e profiler is blank when the game is stuck. and the code doesnt tells anything Time.time shows 0 and 0.2 in boths scenes respectively.
Any one facing this issue ? Anyone from unity can help with this? This is the link to the live game. https://play.google.com/store/apps/details?id=com.live4fungames.hne
void Start()
{
Application.LoadLevel("Loading");
}
Thats it. i have tried this now on 5.1.2 5.1.3 and 5.2
I have made builds from Unity 5.12, 5.1.3 and 5.2 same result on all.
Is this only happening when you build to Android or is it also happening with a PC/$$anonymous$$AC build?
No i havent tested on any other platform.
But i have done a few test cases. Current state of build: Im only build the one scene(the first one). 1) the nomal build which i mentioned above take around ~15 seconds to reach the first scene. 2) If i remove the script which loads the next level. it takes around 5 secs.
If i attach the script and do export package on the scene file it shows all the scripts on the other hand if i remove it and export it olny shows the Image and Scene file. 2 files as compared to hundreds. I think this is the normal because unity collects all scripts as dependencies because it doesnt knows which script you are referencing in your script.
but I still dont know how to fix this and what to do next. Just removing things and making builds. Gosh this is taking a lot of time.
PS. even if we attach an empty Script thats just a monobehaviour it is the same as my loading script. It collect all dependencies. I will be making 2 further builds now IOS Unity 5 and Android on Unity 4.
Answer by Sam-K · Sep 15, 2015 at 10:07 PM
I have done some more tests.. The same builds works fine on IOS. I have testd the load time is 4-5 secs. And the same build works on Android in I run it on UNity 4.6.7 I tested the same scenario with some other priject empty with some buttons and textures same results. This is a issue on Unitys side i guess.
FIX: IN Unity 5 audio seetings changed. All the audio files were set to preload by default. Unchecking this box solved the problem.
If so you should file a bug report.
$$anonymous$$akak
I figured out what was the issue. Audio was the problem source. In unity 5 they changed a setting, all the audio files were preloading which took 15 secs on the splash. Aftet i uncheck the preloading checkbox the game is loading now in normall ~4secs.
Anyways thanks for your help.
Answer by YanaArtis · Sep 15, 2015 at 12:38 PM
I have the same issue on the Epson Moverio BT-200. With Unity 5.1 the splash "Powered by Unity" remains on the screen for a few seconds. With Unity 5.2 splash stays on the screen about 40 (!) seconds. When I've created empty project (single scene with one item of text) instead of the game I am working on, and build it for Android under Unity 5.2 (with default settings) the splash screen takes about 30 seconds. Such long time for the splash screen is inappropriate...
Empty project seems to work fine for me it take around 1-4 seconds to load depending on the device. $$anonymous$$y issue is with the dependeices and Resources that are being loaded by unity.