- Home /
Delay after splash screen in Android
I'm trying to display my own splash screen immediately after the mandatory 'Powered by Unity3D' one for an Android game. This worked fine using Unity 3.x, however in 4.x there is about a 4.5 second delay between the Unity splash hiding, and the first scene being visible. I tested this by creating a blank scene and attaching this C# script to the Camera:
using UnityEngine;
public class Test : MonoBehaviour {
void OnGUI() {
GUI.Label(new Rect(0, 0, Screen.width, Screen.height), Time.time + "\n" + Time.timeSinceLevelLoad);
}
}
The label is only visible after about 4.5 seconds after Unity's splash has been hidden, at which point Time.time
and Time.timeSinceLevelLoad
are displaying 4.5.
How can I get my splash screen to show immediately after Unity's?
Answer by tomtom789 · Mar 29, 2013 at 10:26 AM
Hi, You can modify the Splash Screen if you want, you just have to go in : Unity -> Edit -> Project Settings -> Player. And you can modify the default Icon of your application or the Splash Image.
Hope it helps ;)
Answer by psycocrusher · Mar 30, 2013 at 12:48 AM
I Create a Scene only for my Splash Screen, and then i just load the next one.
function Update () {
if(Time.timeSinceLevelLoad > 4.5){
Application.LoadLevel(1);
}
}