Search Issue Tracker

Fixed in 5.3.0

Votes

0

Found in

5.1.2f1

Issue ID

720695

Regression

No

Input.gyro.attitude doesn't output data from OrientationSensor

WP8.1

-

To reproduce:
1. Build attached project
2. Deploy solution to device
3. Notice that Input.gyro.attitude doesn't output data from OrientationSensor

Comments (14)

  1. b1oki

    Apr 10, 2021 22:20

    Unity 2020.3.3f1, zero values for:
    scoresText.text = SystemInfo.supportsGyroscope.ToString() + "\n";
    scoresText.text += Input.gyro.rotationRateUnbiased.ToString() + "\n";
    scoresText.text += Input.gyro.attitude.ToString() + "\n";
    scoresText.text += Input.gyro.userAcceleration.ToString() + "\n";
    scoresText.text += Input.acceleration.ToString() + "\n";
    scoresText.text += Input.location.isEnabledByUser.ToString() + "\n";
    scoresText.text += Input.location.lastData.latitude.ToString() + "\n";
    scoresText.text += Input.location.lastData.longitude.ToString() + "\n";
    scoresText.text += Input.location.lastData.horizontalAccuracy.ToString() + "\n";
    scoresText.text += Input.location.lastData.timestamp.ToString() + "\n";
    scoresText.text += Input.compass.trueHeading.ToString() + "\n";

    when SystemInfo.supportsGyroscope and Input.location.isEnabledByUser is True!

  2. Delrick

    Apr 23, 2020 23:01

    Trying to get Input.gyro.attitude from android 9 phone and getting a quaternion with zeros

  3. Delrick

    Apr 23, 2020 22:55

    definitely not solved, bug present in unity 2019.2.21

  4. uniteiro

    Oct 23, 2017 02:53

    its not work in motorola with gyro in unity 5.6.1 and 2017.2

  5. MWeber

    Nov 08, 2016 16:06

    Definitely not fixed in 5.4.1! Please re-open this issue. I think it rather urgent! In the meantime, I would appreciate a workaround.

  6. Jaap_2a

    Oct 10, 2016 11:05

    This isn't solved completely on 5.4.1. On my older android(6.0) devices and on my iOS devices it works fine. On the newer androids(6.0.1) is no reading at all from gyro.attitude. The newer androids. The biggest difference between the gyroscope that works with Unity is the higher power consumption (5 mA vs 0,9 mA) according my multi sensor recorder app.

    The gyro.gravity output works fine though on all devices...

  7. Toby-Grierson

    Sep 12, 2016 13:56

    Not fixed. Running Unity 5.4.0f3.

  8. janoalex

    Aug 28, 2016 16:39

    Don't know why it is fixed. It does not work on last version

  9. softrare

    Jul 16, 2016 17:21

    Using Unity 5.3.5, it is working sporadically... suddenly stops working. Restarting everything, rolling back code, not working. Then suddenly works again. Please fix!

  10. arjanwiegel

    Mar 31, 2016 07:14

    Please re-open.
    I can confirm that this is NOT resolved for unity 5.3.3 and a nexus5 running android 6.0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.