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. Dismiss Notice

Incorrect splash screen size - Windows 8.1

Discussion in 'Windows' started by MrEsquire, Feb 23, 2015.

  1. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    When compiling a Windows 8.1 build of my application, although all the splash screen sizes are correct within Unity, when running in Visual Studio to test, the splash screen is centered but very small, the plash screen does not scale to users monitor size - game works perfectly and scaled. Cannot locate the settings to fix this - any ideas?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Edit MainPage.xaml.cs, remove compositionScale where splash screen is position.
    There have been few post about this on the forum.
     
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Ok my fault for being noob and not expanding properly.
    I see the lines of code and removed the first to line as per another thread then I get errors:

    The name "InverseScaleX" does not exist in current context etc?
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    You have to remove the usage of those InverseScale* variables as well. Just assume their value is 1, so multiplying by them has no effect.
     
  5. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Ok, I did this and the result is still buggy, as per other threads.
    What happens now is I get a splash screen in the middle, original image size.
    Second later I get another splash screen, this time correct full screen size.
    So why the duplicate screen?

    Code (CSharp):
    1.  #if UNITY_WP_8_1
    2.            
    3.  
    4.             ExtendedSplashImage.RenderTransform = new RotateTransform() { CenterX = 1, CenterY = 1, Angle = -180 };
    5.        
    6.         #else
    7.                 ExtendedSplashImage.SetValue(Canvas.LeftProperty, splashImageRect.X);
    8.                 ExtendedSplashImage.SetValue(Canvas.TopProperty, splashImageRect.Y);
    9.                 //ExtendedSplashImage.Height = splashImageRect.Height;
    10.                 //ExtendedSplashImage.Width = splashImageRect.Width;
    11.    
    12.         #endif
    13.         }
    14.  
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    The first splash is shown by the system, an image you provided.
    However, this image goes away once app starts executing. If your app takes longish to start (Unity initialization), user will see black screen. For this reason we add this thing called "extended splash screen). You have to position and resize it too look properly (identically to system splash).
    Thats what those lines you commented out are supposed to do, just that composition scale is wrong and should not be used at all.
     
  7. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    I see, but the first splash screen is the issue, this is a image I provided to Unity as per the sizes it wanted in the Editor, so the image size is as per Unity Editor, this is the image that does not scale properly as I wish this to be full screen.

    The second image the extended splash screen, is correct size (full screen)
     
    Last edited: Feb 25, 2015
  8. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Well I solved my problem with a unprofessional way, basically the splash screen small size (added background color to match the image, hence the background blends in with the splash screen and it looks like one big image.
    Then I edited the of extended splash screen to match with the original and same background color. This is not a professional way but can solve the issue. Complex splash screens will suffer.