- Home /
Question by
DavidC02 · Oct 05, 2013 at 03:18 AM ·
tiltplatform-supporttilting
Is there a way to know if the device supports tilt?
I know I can check if it's an iPhone, or Android, or whatever, but like, if it's running on Windows 8, it might be a desktop or tablet, and if it's a tablet it can support tilt. Is there a way to tell?
Thanks
Comment
Answer by Flatliner DOA · Jan 19, 2014 at 04:29 AM
Check out the SystemInfo.supportsAccelerometer API. http://docs.unity3d.com/Documentation/ScriptReference/SystemInfo-supportsAccelerometer.html