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

Question MY BUILD FOR IOS IS NOT PROPERLY FITTING THE SCREEN WHAT DO I DO

Discussion in 'iOS and tvOS' started by vybsta26, Dec 13, 2021.

  1. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    I build the game and it Plays Perfect but The levels do not fit on The Screen It Is slightly Off i was Wondering if It Was The Start position of the camera, It wasn’t I was Thinking it was The settings but I haven’t Found An Issue With The Settings I Have tried To change the aspect ratio In the standalone build settings Then Switch platforms to iOS to see If It Would happen In Ios But The Same thing is happening. so I Was able To Recreate The Same Issue It Seems The game is Building In free aspect So It Causing The Issue. I tried changing It To a different Screen Size in The Game View and set it To Native size but it Is Still building with the same issue. So on PC It looks fine but when it Is One Device It has The Issue I Have To Go Threw Xcode….WHAT DO I DO? See pictures below the first pic Is pc I Recreated The Issue because The Game view is on Free aspect but if i put it on a 4K ratio the pc version doesn’t have the issue the second pic Is mobile look at the right side of the mobile and the right Side of the PC version their is a OPEN SPACE THAT IS BLACK
     

    Attached Files:

    Last edited: Dec 13, 2021
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    Please fix your post, don't do all caps, I'm trying to read your post and it hurts me.
     
  3. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    So you want me to rewrite the whole post?
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    Or put it through some automated capitalization web page script or something, I don't know. I know I can't read that.
     
  5. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    OK ITS FIXED BETTER?
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    Modern iOS devices have wider aspect ratio than the typical 16:9 screen. If you don't want black sides appearing, you should be getting the screen's aspect ratio, and moving the camera accordingly so that black areas don't show.
     
  7. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    Can you go a little deeper with this please.. elaborate if u dont mind please. Because I didn’t use that ratio size I build the game in 4K sizing and the level design was also 4K sizing and I made my own ratio for 4K sizing this issue is appearing only on pc when I use free aspect and on mobile it’s happening
     
  8. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    Try adding a 21:9 aspect on your PC and see what happens. There are PC monitors with that aspect or even wider.
     
  9. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    will that change the size on mobile also and how do I add that?
     
  10. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    It will change nothing on mobile, it will just show you the same issue in the editor so you can presumably fix it.

    I told you what you need to do. Depending on the aspect ratio, you need to move the camera a bit so that the black areas don't show.
     
  11. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    ooo ok yeah I tried moving my camera to see if it fixed the issue but no it didn’t
     
  12. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,066
    How is that possible?
     
  13. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    ISSUE SOLVED THANK U ☺️
     
    AcidArrow likes this.
  14. vybsta26

    vybsta26

    Joined:
    Jun 12, 2021
    Posts:
    32
    OK i have another problem…the game works fine but when it gets to a certain part it crashes why would that be the game is only 3.8GB Big