Hyluss icon

[Unity] Detect device type

Hyluss | PRO | 02/04/18 11:30:35 AM UTC | 0 ⭐ | 461 👁️ | Never ⏰ | []
C# |

210 B

|

None

|

0 👍

/

0 👎

        if(SystemInfo.deviceType == DeviceType.Handheld)
        {
            Debug.Log("this is touch device");
        }
        else
        {
            Debug.Log("this is not touch device");
        }

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎