- Home /
windows 8 tablet Input.acceleration
I am trying to get accelerometer input from a windows 8 tablet. I can't get any demo to work with the accelerometer.
Using ones that work with android and ios and they use the input.acceleration, but this doesn't seem to be getting any data. Anyone know the trick to receive this input through unity?
Answer by Leosori · Jan 04, 2014 at 10:17 PM
You only get accelerometer readings if you build it as a Windows Store App (aka Modern UI aka Metro). There is currently (Unity 4.3.2f1) a bug with Input.compensateSensors that swaps the axes in the wrong way under Windows Store Apps.
If you want to use the accelerometer with the Windows Standalone Player, you would have to write some native code to access the sensor API yourself.
Your answer
Follow this Question
Related Questions
Input.acceleration is not working on tablet 0 Answers
Can unity get the native orientation of an android device? 3 Answers
Camera linked directly to device orientation 0 Answers
How to convert Input.GetAxis to Accelerometer control? 2 Answers
Android Z Axis 0 Answers