Extremely Confused About iOS Screen Size!

Hi,

How do you change the screen sizes on Unity to fit the different types of Apple Products. All I can see the option go wide. Is there an option for specific screen sizes and is there a tutorial to make a game fit on the iPhone 4, 4S and 5? Is there another tutorial on how to make a game universal? I’m really confused right now and need some help!

Thank you guys for your time!

Within the editor, you can switch to the various iOS devices for testing in the Game view (assuming you’re set to the iOS Build Platform). You really just mostly need to make sure your UI is constructed in a way that is resolution independent.

How do I set it to the iOS Build Platform?

Bring up the Build Settings window, select iOS and hit the Switch button. Take a look at the Publishing Builds section of the Unity Manual.

Mind you, you can only do that on MacOS. If you’re working on Windows you can “simulate” the screen sizes by using one of the available build platforms and manually setting your project resolution to one of the iOS resolutions (e.g. 960x640, 2048x1536, etc). When it comes to actually building to a device though (or switching to iOS platform), you’ll need to be on MacOS.

Hi guys,

I have a Mac, I pressed switch platforms but I still can’t find specifically dimensions for the iPhone 4 and dimensions for the 5. Also, I can’t find the iPad. Any help there?

Thanks!

If you take a look at the “Game” window, there is a dropdown list in the top-left corner which allows you to select various device resolutions/aspects.

Oh okay, I see it. Thank you so much! The option beside “Layers”, do I leave that as default?

That’s your Unity Editor layout. Typically you might create your own custom layout, or (as I do) create one per game project with custom windows etc. That doesn’t have anything to do with your game’s layout though - just the Unity Editor.

Oh okay, thank you! You’ve been really helpful and I hope to get to know this engine better!

I made a chapter of my Unity iOS book freely available here - http://drupal.technicat.com/learnunity4.html

That chapter covers the areas you asked about (switching build targets, setting the game view resolution), so you might find it helpful.