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

SplashScreen Orientation Bug

Discussion in 'Windows' started by MrEsquire, Nov 4, 2014.

  1. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Hi,

    I have added the correct splashscreen images within Unity3d - they all being landscape as per my game.
    Within Visual Studio, Package.appxmanifest I have set to landscape only, the game therefore sets itself to landscape and this is correct but the splash image seems to be portrait?

    Has this been discussed before, any workaround?

    Thanks
     
  2. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    736
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi,

    could you be more specific? What exactly happens (pictures would help illustrating the issue).
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    I will try and provide, but in simple one line terms, the splash screen is landscape when I try and run game on Lumia phone it flips splash screen to portrait before the game starts.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    The splashscreen is drawn by the XAML element (in MainPage.xaml) - could you try to modify it so it "rotates" the picture back?
     
  6. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    There is a option but no mention or orientation, I assume you saying add some extra code to try and set it?
     
  7. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    Open MainPage.xaml and you will see a texture in the XAML page.
    You need to change this texture so it shows in the correct orientation that your app supports.
     
  8. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    It starts loading the splashscreen correctly with the logo landscape, then after a second flips to portrait with same logo but wrong way around..I try what you said but it could be a bug
     
  9. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    It's not a bug. Check your manifest settings to see also if you're loading any other splash screens. You need to rotate the image (in a photo editing tool) to be the orientation you desire.
     
  10. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    I did all this within Unity before exporting the project within splash settings, so you saying I should check this again in Visual Studio also? I did find the supported rotations setting and checked landscape, I assumed once this is ticked it be clever enough to understand that I wish for the Splash Screen do be this also.
     
  11. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    It does not make such assumption. I'm not sure whether it should, or there should be two settings in Unity...
     
  12. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Oh okay, I just based my assumption on how Unity handles splash screen on all other platforms, now I understand with wp8.1 it seems to be different. Sorry for the confusion but now you understand why users may feel this is a bug somewhat. I think in future Unity editor should have better control of this.

    Cheers
     
  13. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Having same issue again on a new game release, losts of time wasted.
    Therefore two settings are needed in Unity for sure, must have!
    Currently using Unity 4.6.3