- Home /
Detect When the Unity Splash Screen Has Ended?
Is there any method I can use to detect when the Unity splash screen has finished and is no longer on screen? Currently I have some sounds that play on Awake but they play while the Unity splash screen is still present. I would like to be able to tell when the splash screen has ended so I can play my sounds at the appropriate time. Thank you in advance!
Answer by Nimdanet · Feb 09, 2018 at 09:02 PM
Method is deprecated. Use UnityEngine.Rendering.SplashScreen.isFinished instead.
(https://docs.unity3d.com/ScriptReference/Rendering.SplashScreen-isFinished.html)
Nimdanet gave the correct answer for the newer unity versions. Check https://docs.unity3d.com/ScriptReference/Rendering.SplashScreen-isFinished.html for more info:
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;
// This example shows how you could draw the splash screen at the start of a scene. This is a good way to integrate the splash screen with your own or add extras such as Audio.
public class SplashScreenExample : $$anonymous$$onoBehaviour
{
IEnumerator Start()
{
Debug.Log("Showing splash screen");
SplashScreen.Begin();
while (!SplashScreen.isFinished)
{
SplashScreen.Draw();
yield return null;
}
Debug.Log("Finished showing splash screen");
}
}
Answer by Johannski · Mar 12, 2016 at 03:54 PM
Solution for Unity 5.3.2 an higher:
You can check now if an application was loaded with Application.isShowingSplashScreen (http://docs.unity3d.com/ScriptReference/Application-isShowingSplashScreen.html)
Answer by homer_3 · Apr 28, 2014 at 03:11 AM
Once the 1st scene loads, the splash screen is gone. So you can just use the Start method of a script that's used in your 1st scene.
This is not true with Unity 5 (5.1.2f1) with the iOS build. The first scene loads before the splash screen has ended. This would appear to be a bug.
I have same problem int 5.1.3f1 like trojanfoe123. any idea?
Same problem, 5.3.2f1, iOS build. It's annoying because I'm doing cardboard stuff, and the cardboard "chrome" loads on top of the splash screen weirdly before the rest of the scene loads....
Answer by getyour411 · Apr 26, 2014 at 08:56 PM
Control it via
This is for a custom splash screen, I'm just trying to figure out when the standard splash screen from Unity (the free version one) ends.
Your answer
Follow this Question
Related Questions
Fading out the Unity Splash Screen 1 Answer
iPod touch 5th gen launch screen 0 Answers
Splash screen problem (black image) 0 Answers
default ios splashscreen blurry 0 Answers