- Home /
How to distinguish iPad 2 from iPad (1)?
As long as we don't have iPhoneGeneration.iPad2Gen - how can we determine whether an iPad is an iPad or iPad 2? iPhoneSettings.model returns "iPad" in both cases.
As the iPad 2 is much more powerful, having a way to easily distinguish the two would be really helpful to be able to add eye-candy; and it would be unfortunate if we'd had to wait for Unity 3.4.
Answer by synapsemassage · Apr 18, 2011 at 09:09 PM
For now I would check for iPhoneGeneration.Unknown as this should be most likely iPad 2 in Unity 3.3. Check this post http://forum.unity3d.com/threads/81257-iPhoneGeneration.iPad2Gen-...?highlight=unknown
Answer by Ferazel · Apr 18, 2011 at 04:34 PM
My recommendation would be to write an Objective-C plug-in (PRO-ONLY) if you can similar to what is described on this thread.
http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
Answer by efge · Apr 18, 2011 at 04:30 PM
Maybe the graphics information from SystemInfo could do the job?
graphicsDeviceName
graphicsDeviceVersion
graphicsMemorySize
Nope - unfortunately, both devices will return: SystemInfo.graphicsDeviceName: OpenGLES2.0, SystemInfo.graphicsDeviceVersion: OpenGL ES 2.0, SystemInfo.graphics$$anonymous$$emorySize: 24, SystemInfo.graphicsPixelFillrate: -1
Answer by thomasw · Jul 29, 2011 at 08:19 AM
According to the release notes for Unity 3.4 "iPhoneSettings.generation now recognises iPad2".
Your answer
Follow this Question
Related Questions
Which Version to Buy? 1 Answer
Stuck on Unity Logo? or just a long loading time in the first loading? 0 Answers
Unity to xCode to iOS device problem 1 Answer
"Analytics" for Unity / iPhone 1 Answer
How do I set up my editor to "ipadview" 0 Answers