Search Unity

Why is my splash screen logo stretched?

Discussion in 'Editor & General Support' started by Jukuon, May 1, 2017.

  1. Jukuon

    Jukuon

    Joined:
    Mar 29, 2017
    Posts:
    6
    I am using unity 5.6. I added a logo to in Player Settings for Android. The logo is always stretched unproportionately in Unity Editor or Android device.

    My game is in 1080x1920 resolution and I've tried making the logo with that size with transparent background, also tried creating a square or the suggested 320x480 but the problem is always there.

    How do I fix this? Thanks.
     
  2. Jukuon

    Jukuon

    Joined:
    Mar 29, 2017
    Posts:
    6
    No one at all? Anyone?
     
  3. Jukuon

    Jukuon

    Joined:
    Mar 29, 2017
    Posts:
    6
    No love for newbie unity user.

    Anyway, I finally figured it out. In the Inspector tab. make sure under the

    Sprite Mode > Mesh Type is set to Full Rect

    Other settings should
    Texture Type: Sprite (2D and UI)
    Sprite Mode: Single

    Advance
    Alpha Is Transparency: Checked
     
  4. thexdd

    thexdd

    Joined:
    Mar 20, 2013
    Posts:
    20
    Ah, thank you mate. That is a really helpful information. Was having troubles with this too.
     
  5. AlphaGTR

    AlphaGTR

    Joined:
    Oct 26, 2013
    Posts:
    38
    Helpful posts
     
    hellobody and therealreverend like this.
  6. Kirox94

    Kirox94

    Joined:
    Aug 11, 2017
    Posts:
    1
    I had this problem too, but I solved setting the mesh type to Full Rect. Ty Jukuon! :)
     
  7. jbergs

    jbergs

    Joined:
    Feb 13, 2014
    Posts:
    26
    Yup, same problem. Checked Full Rect fixed it. Thanks!
     
  8. LOLinc

    LOLinc

    Joined:
    Nov 18, 2013
    Posts:
    28
    Thank you!
    (this really should be part of the official unity splash-screen documentation)
     
  9. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    https://docs.unity3d.com/Manual/class-PlayerSettingsSplashScreen.html

    You dont have to be in Full rect mode however any changes to the border will be ignored as the splash screen does not support 9 slice mode.
     
    Bakanovskiy95 and senkal_ like this.
  10. LOLinc

    LOLinc

    Joined:
    Nov 18, 2013
    Posts:
    28
    karl_jones likes this.
  11. statmom

    statmom

    Joined:
    Feb 14, 2016
    Posts:
    5
    This is awesome! I was spending a lot of time trying to figure this out - only need to change sprite image to Full Rect Mode. Thanks!
     
  12. Serve

    Serve

    Joined:
    Nov 8, 2012
    Posts:
    13
    Thanks Jukuon, exactly what I needed!
     
  13. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
  14. nicolasbulchak

    nicolasbulchak

    Joined:
    Aug 9, 2013
    Posts:
    37
    Thank you so much for figuring this out. Was driving me crazy
     
  15. Abdulrazek

    Abdulrazek

    Joined:
    Mar 4, 2018
    Posts:
    5
    Thank you so much this was very helpful
     
    karl_jones likes this.
  16. tarnumius

    tarnumius

    Joined:
    Feb 16, 2018
    Posts:
    7
    Thank you!
     
  17. Kaldrin

    Kaldrin

    Joined:
    Jul 10, 2018
    Posts:
    46
    Thanks a loooot :eek:
     
    RebeccaDrury likes this.
  18. MoMughal

    MoMughal

    Joined:
    Mar 2, 2017
    Posts:
    3
    Thanks a lot mate :)
     
  19. jennagoldberg

    jennagoldberg

    Joined:
    Nov 13, 2017
    Posts:
    1
    This was very helpful, thank you!
     
  20. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    Im working on some changes at the moment so tight mesh sprites will work and you will even be able to use vector sprites :D
    Probably be a 2019.1 feature.
     
    Deleted User and Adswars like this.
  21. naderlabbad309

    naderlabbad309

    Joined:
    Feb 11, 2018
    Posts:
    32
    ............................................................................................thank you
     
  22. enigmagame

    enigmagame

    Joined:
    Feb 16, 2014
    Posts:
    13
    Hi,
    on Unity 2017.4.15f1 I've the same issue, no matter if the sprite is configured with Mesh Type as Full Rect.
    Using the preview feature in the Splash Image panel the logo appears stretched.
    How is the proper way to fix it?
     
  23. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    Try adjusting the logo bounds in the sprite editor. https://docs.unity3d.com/Manual/class-PlayerSettingsSplashScreen.html
     
  24. enigmagame

    enigmagame

    Joined:
    Feb 16, 2014
    Posts:
    13
    Hi karl_jones,
    I've already read that manual page but I don't understand what do you mean with "adjusting the logo bounds" the image is already correctly sized. If I touch the bounds the image will be cutted, not resized.
     
  25. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    Can you share the image so I can try it myself?
     
    abuufedo likes this.
  26. enigmagame

    enigmagame

    Joined:
    Feb 16, 2014
    Posts:
    13
    Sure,
    here you can find a resized version of the FMOD logo.
     
  27. fluffyfrogstudios

    fluffyfrogstudios

    Joined:
    Aug 10, 2018
    Posts:
    3
    Champion. thanks :)
     
  28. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    99
  29. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    If you are using 2019.2+ you can now use tight mesh sprites and vector sprites in the splash screen as logos :D
     
    Horus_Sungod42 likes this.
  30. Dotberrys

    Dotberrys

    Joined:
    May 29, 2019
    Posts:
    7
    Hi,

    Any way to resize the logo on the splash screen? It looks way too big with the default settings. I tried to adjust the resolution of the logo but it still appears in the same big size. Any help would be appreciated.
     
  31. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    You could try adjusting the bounds in the sprite editor.
     
  32. vladutstefan27

    vladutstefan27

    Joined:
    Sep 9, 2018
    Posts:
    5
    Thank you kindly!
     
  33. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    569
    I've read through this thread and none seem to address how to display an image UNSCALED in the splash logo sequence. Adjusting bounds does nothing. Say I want to display a 600x400px logo in a 1920x1080 screen, how do I keep the logo at the size it's supposed to be instead of it scaling/stretching?
     
  34. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    Thats not supported. The logo is always scaled to fill a portion of the screen.
    You could show a custom scene after the splash with your logo how you want it to be.
     
    LilGames and Joe-Censored like this.
  35. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    569
    Well that clarifies things. Thank you.
     
  36. Gillissie

    Gillissie

    Joined:
    May 16, 2011
    Posts:
    305
    Another tip: I noticed that the first splash logo doesn't fade in properly, due to launch lagginess. Put a solid colored sprite (same color as the background) as the first logo, so it takes the brunt of the launch lagginess. Then your actual logo will fade in nicely as it's supposed to. Would be nice if this workaround wasn't necessary.
     
    LilGames likes this.
  37. MaceB

    MaceB

    Joined:
    Jun 26, 2016
    Posts:
    9
    Can you please provide more explanation how to do this?
     
  38. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    What are you trying to do?
     
  39. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    569
    Despite my reply above, I once again am mired in this splash screen logo obtuseness. Can you not tell us what AREA of the screen Unity fills with the selected logo? I just still cant figure out what SIZE to make my logos so they fit.

    Unity 2018.4.1f1

    *EDIT* I took a screen shot of a full 1920x1080 "logo", screen capped it and brought it into Photoshop so I could "measure" what size it got squished down to. Looks liked about 1164x658 (on a 1920x1080 screen). Weird value... So I cropped my logo to fit that width. Seems to work.

    But really.. there's no actual numbers, percentage or ratios Unity can give us in the manual or in this thread?
     
    Last edited: Nov 15, 2019
  40. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    Ill look into improving the documentation for this.
    Here is a simplified script to show how the logo area is calculated:
    Code (csharp):
    1.  
    2. using UnityEngine;
    3.  
    4. public class ShowSplash : MonoBehaviour
    5. {
    6.     public float logoFullScreenScale = 0.8f;
    7.     public float unityLogoHeightScale = 0.21f;
    8.     public bool withUnityLogo = false;
    9.  
    10.     void OnGUI()
    11.     {
    12.         var windowSz = new Rect(0, 0, Screen.width, Screen.height);
    13.         float minSideLength = Mathf.Min(Screen.width, Screen.height);
    14.         var forgroundRect = new Rect(
    15.             windowSz.x + (windowSz.width - minSideLength) * 0.25f,
    16.             windowSz.y + (windowSz.height - minSideLength) * 0.25f,
    17.             (windowSz.width + minSideLength) * 0.5f,
    18.             (windowSz.height + minSideLength) * 0.5f);
    19.  
    20.         if (withUnityLogo)
    21.         {
    22.             var companyLogoRect = new Rect(
    23.                 windowSz.x + (windowSz.width - minSideLength) * 0.25f,
    24.                 0,
    25.                 (windowSz.width + minSideLength) * 0.5f,
    26.                 windowSz.height * 0.5f);
    27.             var center = companyLogoRect.center;
    28.             companyLogoRect.size *= logoFullScreenScale;
    29.             companyLogoRect.center = center;
    30.             GUI.DrawTexture(companyLogoRect, Texture2D.whiteTexture);
    31.         }
    32.         else
    33.         {
    34.             GUI.DrawTexture(forgroundRect, Texture2D.whiteTexture);
    35.         }
    36.     }
    37. }
    The white rect in the script is the safe area for the logo, we then scale the logo to fit inside this rect.
     
    LilGames and NgCa like this.
  41. NgCa

    NgCa

    Joined:
    Nov 22, 2018
    Posts:
    6
    yeah exactly what i'm locking for. :cool:
     
    karl_jones likes this.
  42. MTalhaAli

    MTalhaAli

    Joined:
    May 29, 2018
    Posts:
    2
    thanks
    plz upload more helpful posts
     
  43. RahulUnni

    RahulUnni

    Joined:
    Aug 12, 2020
    Posts:
    3
    Thank you Jukuon. really helpfull
     
  44. FuegoHD

    FuegoHD

    Joined:
    Jun 26, 2020
    Posts:
    2
    Amazing how 1 post can help so many ppl for so many years to come.
     
  45. AV8-Tech

    AV8-Tech

    Joined:
    Aug 24, 2020
    Posts:
    3
    For such a simple and commonplace requirement, I'm perplexed as to why the splash screen doesn't have the ability to just size and position the image you want to display. Anyway, I found a workaround; create the image in something like Illustrator, make it a smaller size than your artboard and when you export, check "use artboards". This creates a transparent area around the image and thus reduces its overall size on the splash screen.

    It should be this complicated
     
    anandiamy likes this.
  46. yonek_idreams

    yonek_idreams

    Joined:
    Sep 10, 2014
    Posts:
    26
    I see you talking about the 'safe area', as we see the image is being stretched to fit the safe area. We have a problem with it as our splash screen design is requiring to stretch full screen on iPhone X. Could you guys add a option for this in the splash screen setup?
     
  47. hybridshivam

    hybridshivam

    Joined:
    Feb 18, 2020
    Posts:
    3
    Thank you It works!!!!!