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?
1 Answer
1
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.
Thanks for the answer, Leosori
– dshewmaker