- Home /
Is Screen.Heigth a good way to id the iPhone generation?
Hi, I am almost done with a game I made for iPhone. I developed it to run on the iPhone 5/5S/5C 4" screen, and it looks good. But now I'm looking for a way to identify if my game is running on a 3.5" screen (iPhone 4S and below) or on a 4" screen. I know that you could use iPhone.generation to check that, but you would have to explicitly write all iPhone generations and check each one.
I was thinking about using Screen.height, and have an "if" to compare the sizes, but I don't know which way is better / more efficient / less prone to error.
Thanks in advance
Your answer
Follow this Question
Related Questions
Adapting to iOS screen sizes ? 0 Answers
How do I change Unity to view iPhone size when it hit "Play" ? 2 Answers
iPhone Screen Size 2 Answers
Screen width problem with iPhone game (Xcode) 0 Answers
Handling iPhone / iPad screen sizes? 0 Answers