I’m trying to make a simple tilt-control game.
I figured that the easiest way to test motion controls as I code them was to work on my Surface Pro, since it’s basically a full PC with Accelerometer and Gyro. Problem is, Unity doesn’t seem to be recognizing these sensors when I test the game in the editor.
I tried the test code from the script reference on a cube “transform.rotation = Input.gyro.attitude;” And nothing happens. I tried printing the attitude and Input.acceleration and all I get are “(0.0, 0.0, 0.0, 1.0)” and “(0.0, 0.0, 0.0)” respectively, no matter how much I twist and shake the device.
I do currently have my build settings on Windows Store Apps.
So… how can I make Unity recognize my Surface’s sensors?