Legacy Documentation: Version 5.6 (Go to current version)
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

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> 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.
iPhone7iPhone 7.
iPhone7PlusiPhone 7 Plus.
iPodTouch6GeniPod Touch, sixth generation.
iPad5GeniPad Air, fifth generation.
iPhoneUnknownYet unknown iPhone.
iPadUnknownYet unknown iPad.
iPodTouchUnknownYet unknown iPod Touch.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961