Version: 5.4 beta (switch to 5.3)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DeviceGeneration

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

iOS device generation.

Variables

iPhoneiPhone, first generation.
iPhone3GiPhone, second generation.
iPhone3GSiPhone, third generation.
iPodTouch1GeniPod Touch, first generation.
iPodTouch2GeniPod Touch, second generation.
iPodTouch3GeniPod Touch, third generation.
iPad1GeniPad, first generation.
iPhone4iPhone, fourth generation.
iPodTouch4GeniPod Touch, fourth generation.
iPad2GeniPad, second generation.
iPhone4SiPhone, fifth generation.
iPad3GeniPad, third generation.
iPhone5iPhone5.
iPodTouch5GeniPod Touch, fifth generation.
iPadMini1GeniPadMini, first generation.
iPad4GeniPad, fourth generation.
iPhone5CiPhone 5C.
iPhone5SiPhone 5S.
iPadAir1iPad Air.
iPadMini2GeniPadMini Retina, second generation.
iPhone6iPhone 6.
iPhone6PlusiPhone 6 plus.
iPadMini3GeniPad Mini 3.
iPadAir2iPad Air 2.
iPhone6SiPhone 6S.
iPhone6SPlusiPhone 6S Plus.
iPadPro1GeniPad Pro, first generation.
iPadMini4GeniPad Mini, fourth generation.
iPhoneSE1GeniPhone SE, first generation.
iPadPro10Inch1GeniPad Pro 9.7", first generation.
iPhoneUnknownYet unknown iPhone.
iPadUnknownYet unknown iPad.
iPodTouchUnknownYet unknown iPod Touch.