Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

DeviceType

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

Enumeration for SystemInfo.deviceType, denotes a coarse grouping of kinds of devices.

Windows Store Apps: tablets are treated as desktop machines, thus DeviceType.Handheld will only be returned for Windows Phones.

Variables

UnknownDevice type is unknown. You should never see this in practice.
HandheldA handheld device like mobile phone or a tablet.
ConsoleA stationary gaming console.
DesktopDesktop or laptop computer.