What are the Unity identifiers for iPhone6 and iPhone6 Plus ?

We have theese for iPhone 5:

iPhone.generation == iPhoneGeneration.iPhone5

iPhone.generation == iPhoneGeneration.iPhone5C

iPhone.generation == iPhoneGeneration.iPhone5S

Is there some wiki article about iPhone6 ?

When will we be able to build on iPhone6 devices?

4 Answers

4

You can edit Classes/Unity/DeviceSettings.mm and Classes/iPhone_Common.h, I guess. Am sure a future version of Unity will support iPhone6 and iPhone6Plus identification. You should be able to build onto these new devices just as soon as you have one.

I believe it must appear at http://docs.unity3d.com/ScriptReference/iPhoneGeneration.html

At the moment iPhoneGeneration doesn’t have definitions for the new iPhone 6/6+ but Xcode will report back correctly the new device IDs. As a temporary hack you can use this:

iPhone.generation.ToString() == "21" //iPhone 6
iPhone.generation.ToString() == "22" //iPhone 6+

Here’s the new link to the iPhoneGeneration.

The previous class only goes up to iPhone 5, and it is a little confusing if you aren’t aware of this one.