Hyluss

[Unity] Detect device type

Feb 4th, 2018
536
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1.         if(SystemInfo.deviceType == DeviceType.Handheld)
  2.         {
  3.             Debug.Log("this is touch device");
  4.         }
  5.         else
  6.         {
  7.             Debug.Log("this is not touch device");
  8.         }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment