• 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
7
Question by Andrea_Marchetti · May 29, 2017 at 06:32 AM · androidloading screensplashscreenstarting

How to avoid the white screen before Splashscreen on android mobile.

When I run my app on my device a white screen shows up, then the Unity logo and then my first scene.

Is there a way to prevent the white screen from showing up?

Comment
Add comment · Show 2
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 kyuskoj · May 29, 2017 at 02:50 PM 1
Share

I have that problem too.. So annoying. 5.6.0f3

avatar image krou · Jun 02, 2017 at 11:16 AM 0
Share

i have this issue both at 5.6.0f3 and 5.6.1f1. On some devices the delay is 12 seconds. Any ideas how to solve it?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by bschizzles · Jul 18, 2017 at 08:44 PM

I was able to fix this by editing the theme in the styles folder in the post-Unity Android project. First I built and exported the project for Unity to be configured for Android Studio. Then I edited the pre-existing styles.xml file in the res/values folders (there are different folders for different styles.xml files according to what I believe are SDK versions) so that the android:windowBackground property for the style was set to my desired color. After building from Android Studio, I had a black background (our desired color) instead of a white background before the Unity logo.

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="UnityThemeSelector" parent="android:Theme.Light.NoTitleBar.Fullscreen">
    <item name="android:windowBackground">@color/background</item>
</style>
</resources>

I also created a colors.xml file in which I created a background color with the corresponding hex value of our desired background color.

Idea came from this post:

http://answers.unity3d.com/questions/936483/set-background-white-to-splash-screen-for-android.html

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
avatar image
0

Answer by HarshadK · Jun 02, 2017 at 11:26 AM

The reason is as specified by Karl Jones on this thread Why is there a delay before the splash screen in Android titles?. Quoting here for convenience:

Do you mean the unity splash screen or the custom android image one? The unity one requires the engine to be loaded so can be delayed if you have a large initial scene. The image is supposed to be shown straight away as its using android specific stuff.

Comment
Add comment · Show 1 · 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 krou · Jun 03, 2017 at 06:17 AM 0
Share

i have this issue at empty project and base initial scene. But white screen have large delay only at first start, then works fine

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

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

Related Questions

Stuck on splash screen on Android only 0 Answers

android app crashes after unity screen (maybe because of AdMob?) 0 Answers

How to skip the interface of begining on the android? 2 Answers

Loading screen gets stuck sometimes 0 Answers

Does Unity 5.3 with Android Pro license support using nine-patch PNG files as Android Launch Image? 0 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