Android - Input.gyro.attitude not working

Hello,

I can’t seem to figure this one out. My application uses ‘Input.gyro.attitude’ to move the scene camera with the device’s gyro.

This works fine with iOS, but I can’t seem to get it to work for Android :-/

The first thing that came to mind was the ‘AndroidManifest’. It appears that I actually have 6 of them, is that okay? (Each one for a different plugin).

In three of them, I’ve added the lines:

<uses-feature android:name="android.hardware.sensor.accelerometer" />
<uses-feature android:name="android.hardware.sensor.gyroscope" />

Here are the Manifests:

http://codepaste.net/1ktthv

http://codepaste.net/zp7oqh

http://codepaste.net/37j2fv

I assume that’s where the issue lies, unless you guys have any other suggestions? Thanks.

I had the save problem and i just found this: “apparently Input.Gyro is for iPhone only. When on android, use Input.acceleration and convert it to a Quaternion with Quaternion.LookRotation.”