• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by luniac · May 22, 2015 at 12:24 PM · iphonesplashscreen

unity splashscreen skipping first scene! IPHONE

Im running a game build on the iphone and the uniuty splash screen plays and then loads my SECOND scene.

I have my own custom splash screen in my first scene.

Why does it do that!?!?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by samra2494 · Mar 30, 2016 at 01:05 PM

you can use this line on code at the first line of your update function if(Application.isShowingSplashScreen) { return; //call your spash screen animation //the you scene... } go through this link http://docs.unity3d.com/ScriptReference/Application-isShowingSplashScreen.html

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image luniac · Mar 31, 2016 at 02:45 AM 0
Share

damn can't they have a function to check when splash screen is finished?

thanks though, at least you can work with the function you provided.

avatar image moh05 · Nov 17, 2016 at 09:58 AM 0
Share

Hello,

Im facing the same problem, sometimes it loads the second screen, other times it just stuck there.

any solution for that?

avatar image
0

Answer by digzou · May 22, 2015 at 03:09 PM

I am also doing what you are. And what was happening with me is that my splash scene was loading and then loading the next scene before the unity splash scene dissapeared. I solved it by increasing the value of "waitForInSeconds" variable. This is my script.

 using UnityEngine;
 using System.Collections;
 
 public class SplashScene : MonoBehaviour
 {
 
     public int waitForInSeconds = 1;
     public string loadSceneName;
 
     public float fadeFactor;
     public UnityEngine.UI.Image splashImage;
     private Color _tempColor;
 
     void Start ()
     {
 
         if (splashImage == null)
             splashImage = GameObject.Find ("xxx_image").GetComponent<UnityEngine.UI.Image> ();
 
         //Set to invisible, for the fade in.
         _tempColor = splashImage.color;
         _tempColor.a = 0.0f;
         splashImage.color = _tempColor;
 
 
         if (loadSceneName == "" || loadSceneName == null)
             loadSceneName = "xxx_scene";                    //If null, find this scene.
 
 
         //If already fade in complete, load scene, after x time. Just to be safe.
         if (splashImage.color.a >= 0.9f)
             StartCoroutine (loadGame (waitForInSeconds, loadSceneName));
     }
 
     void Update ()
     {
 
         //Fade in and load scene.
         if (splashImage.color.a >= 0.9f)
             StartCoroutine (loadGame (waitForInSeconds, loadSceneName));
         else
             fadeImage ();
     }
 
     
     IEnumerator loadGame (float waitFor, string sceneName)
     {
         yield return new WaitForSeconds (waitFor);
         Application.LoadLevel (sceneName);
     }
 
     public void fadeImage ()
     {
 
         _tempColor = splashImage.color;
         
         if (_tempColor.a < 1.0f) {
             _tempColor.a += fadeFactor;
             splashImage.color = _tempColor;
         }    
     }
 
 }
 

Hope it helps. :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Splash Screen Question 2 Answers

iPhone app gets stuck on splashscreen... 2 Answers

Roll-a-ball crashes on splashscreen 0 Answers

iOS Splash Screen Rotation 2 Answers

Accelerometer frequency depends on fps 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges