- Home /
everything stretched on iPhone 5
When i run my 2d game in the unity player, it does everything that i want it to in terms of dealing with different screen sizes - i switch between iPhone 4 size and iPhone 5 size, and on iPhone 5 you can just see a bit more of the game world (which is correct)
However, when i build the Xcode project and run it on an actual iPhone 5, it seems that it's running it at the iPhone 4 resolution, and stretching that to fill the screen. So all the sprites appear much longer and thinner than they should.
I'm really stuck on why this is happening - i can't find anything in the player settings that might be causing it. Any ideas?
Answer by peterworth · May 07, 2014 at 07:43 AM
i was being blind, the setting just wasn't where i expected it. in player settings -> iOS, it's not under resolution, but further down: other settings -> configuration -> Target Resolution, should be set to native
Answer by lacipalfi · May 06, 2014 at 01:31 PM
If you're using GUITextures in your game this script should help you
thanks, but i don't think it has to do with that, because it's the entire screen - unity sprites, ngui items, the position of everything - like the the whole screen is stretched not just the textures within it
Your answer
Follow this Question
Related Questions
What texture resolution should I use in iPhone 2D game? 1 Answer
World space to pixel space accuracy 1 Answer
iphone 2D settings 2 Answers
2D iphone / ipad resolution? 1 Answer
GUI button fit on both iPhone and iPad 3 Answers