- Home /
our game was developed with unity4.3,how to check the device is Iphone6 or iPhone6 plus
if UNITY_IPHONE
if(iPhone.generation == iPhoneGeneration.iPad4Gen ||
iPhone.generation == iPhoneGeneration.iPad5Gen ||
iPhone.generation == iPhoneGeneration.iPadUnknown ||
iPhone.generation == iPhoneGeneration.iPhone5 ||
iPhone.generation == iPhoneGeneration.iPhone5C ||
iPhone.generation == iPhoneGeneration.iPhone5S ||
iPhone.generation == iPhoneGeneration.iPhoneUnknown)
{
return true;
}else
{
return false;
}
endif
this is our code to check ios device . but unity4.3 doesn't have a identify for iphone6. And the iphoneUnkonwn is not worked when the device is an iphone6 plus
anyone ,who knows how to do that??? thanks
Comment
yes ,our company used 4.3 for the current project and don't have a plan to upgrade
You're not going to be able to publish it without 4.6 anyway. So you might as well upgrade; it's not like there's a choice.
Your answer
Follow this Question
Related Questions
What device is being used? 1 Answer
How to detect if the device is android mobile or tablet 2 Answers
upload image to server 0 Answers
Mobile - Check for headphones 0 Answers
Mobile device screen sizes 4 Answers