Legacy Documentation: Version 5.2
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

Switch to Manual

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.
iPhone6SiPhone6S value.
iPhone6SPlusiPhone6Plus value.
iPadPro1GeniPadProGen1 value.
iPadMini4GeniPadMini 4th Generation.
iPhoneUnknownYet unknown iPhone.
iPadUnknownYet unknown iPad.
iPodTouchUnknownYet unknown iPodTouch.