Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Win 10 app - weird behavior of splash screen

Discussion in 'Windows' started by Notter, Dec 4, 2015.

  1. Notter

    Notter

    Joined:
    Mar 8, 2015
    Posts:
    65
    Hello,
    I've encountered a weird situation with the splash screen that i'm not sure what's the cause of, and i'm hoping to get some help.

    I've set up the image in the app-manifest, and set the background color to black.
    but when i open my app, you can see the splash screen image for like 1 second, and then it changes to a white background with a black rectangle, and then the Unity splash.
    (if you want to see for yourself, here's a link to the store: https://www.microsoft.com/en-us/store/apps/einstein-junior/9wzdncrd8dbc)

    Any help would be appreciated.
    Please let me know if i need to provide more information
     
  2. GarthSmith

    GarthSmith

    Joined:
    Apr 26, 2012
    Posts:
    1,240
    Before you build in Visual Studio, check the Package.appxmanifest file. There is a spot to assign a splash screen. Maybe it's not getting assigned properly?
     
  3. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,198
    1. Open the manifest
    2. Click Visual Assets (assuming you are building xaml project)
    3. Next to "Background color" add in the color you want in hexadecimal. e.g. #000000 for black
    4. If you leave it blank, it defaults to white
     
  4. Notter

    Notter

    Joined:
    Mar 8, 2015
    Posts:
    65
    Like i've already mentioned, I've set the background color in the manifest to black.
    And I've also set an image for splash screen.

    but it appears for a second, and then turns into a white background with a black rectangle.
    you can check my link to see it for yourselves
     
  5. Sievlar

    Sievlar

    Joined:
    Oct 3, 2012
    Posts:
    68
    I just filed a bug report for Unity 5.3 beta, but likely the same issue on Unity 5.2.

    I did the following as a workaround in MainPage.xaml.cs:
    1 - In function PositionImage remove the #if UNITY_WP_8_1
    2 - In function GetSplashBackgroundColor change this line (which ignores the value in the manifest)
    ExtendedSplashGrid.Background = newSolidColorBrush(Color.FromArgb(0xff, 0, 0, 0));
    3 - In the manifest make sure you have a splash screen for both 1240x600 and 620x300

    -Mark
     
  6. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    I had this, and found that in visual studio, open the package manifest and make sure all splash screen images are assign (hirez to lowrez)... I also went ahead and added all "recommended" icons and imagery... then that white/black box flash went away.
     
  7. Notter

    Notter

    Joined:
    Mar 8, 2015
    Posts:
    65
    Thank you very much for the help :)
    I did as Sievlar recommended BUT, i'm also noticed some visual elements were not recognized in the manifest, so i gave each one a unique name.
    And the problem was solved.

    That being said, i've noticed that when you choose background color in the player settings, it doesn't change the background of the splash screen.
    So i gave the splash screen color manually too.
     
  8. Notter

    Notter

    Joined:
    Mar 8, 2015
    Posts:
    65
    On second glance, i've noticed that when the app opens up, it starts with a big splash screen image, and then it shrinks a bit.
    even though i've gave it only 1 image in the splash screen (no different scales)
     
  9. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Try latest patch release. This bug has been fixed. You may need to export to empty directory too.
     
  10. Notter

    Notter

    Joined:
    Mar 8, 2015
    Posts:
    65
    Ah cool thanks, i'll try it (i guess you mean 5.2.3p2)
    if it was fixed in that patch, might be worth adding it to the "fixes" list.
    I didn't see it listed, so i didn't bother trying it out..

    And btw, do you mean the white background color fixed, or what i've mentioned in my last post about image shrinking?
     
  11. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Backgaround issue. As for extended splash screen, you can setup it as you want by editing MainPage.xaml(.cs).