- Home /
Question by
Diet-Chugg · Dec 29, 2010 at 09:21 PM ·
iphonedetectionipad
Telling the difference between Iphone and Ipad
Is there a way to check in code to see if you are using an iPad vs a iphone/Touch?
eg.
if(usingIpad) { Do Ipad specific stuff. } else if(usingIphone or usingItouch) { Do Itouch and Iphone stuff. }
(I looked through a bunch of documentation and I probably just missed it... :( Thanks again for the help )
Comment
Best Answer
Answer by burnumd · Dec 29, 2010 at 09:25 PM
There's this, which should tell you what the user is using.
Yes, since 4.0 some of these Unity Scripting References are missing.
try this : http://docs.unity3d.com/Documentation/ScriptReference/iPhoneGeneration.html
http://docs.unity3d.com/Documentation/ScriptReference/iPhone-generation.html
or : http://docs.unity3d.com/Documentation/$$anonymous$$anual/PlatformDependentCompilation.html