Search Issue Tracker

Fixed in 2020.1.X

Votes

1

Found in

2017.4.0f1

2018.4.0f1

2019.2.0a1

2019.2.1f1

2019.3.0a1

2020.1.0a1

Issue ID

1177775

Regression

No

[iOS 13.0] Rotations around Device Y-axis does not work when rotating a Device

iOS

-

The API for the Gyroscope doesn't work correctly in current (Beta) versions of iOS 13 and iPadOS 13. Running the same code on iOS 12.x devices run just fine, but on iOS 13 and iPadOS 13 devices, the functionality of the Gyroscope is completely lost: rotations around devices Y-axis do not work at all, and in Landscape mode there's a quick flip between positive X direction and negative X direction when moving from negative Y to vertical Y or vice versa.

To reproduce:

1. Download attached "GyroscopeTest.zip" project and open in Unity
2. Build for iOS
3. Deploy the Xcode project to the iOS device
4. Rotate Device to the Left and Right

Expected results: Scene rotates as you rotate Device
Actual results: Scene does not rotate when you rotating Device

Notes:
- This issue happens only on iOS with 13.0 and above version
- This issue does not reproduce on Android (Mono and IL2CPP) and iOS 12.x and lower

Tested with:
- iPhone 7, iOS: 12.3.1 - Not Reproduced
- iPhone 8 Plus, iOS: 12.0 - Not Reproduced
- iPhone X, iOS: 11.3.1 - Not Reproduced
- iPhone XR, iOS: 12.0 - Not Reproduced
- iPad Pro 3rd Gen, iOS: 13.0 - Reproduced

Reproduced on Unity 2017.4.0f1, 2017.4.32f1, 2018.4.8f1, 2019.2.6f1, 2019.3.0b3 and 2020.1.0a4

Comments (4)

  1. Deankovitch

    Jun 09, 2020 00:27

    For all those who are facing this issue, I developed a workaround using ARHS algorithm.
    Access the following repo to get these scripts.

    https://github.com/Deankovitch/UnityGyroAccelCamera.git

  2. makaka-org

    May 21, 2020 21:39

    Adding: Unity 2019.3.13

  3. makaka-org

    May 21, 2020 21:39

    Samsung A71 with Android 10 also has strange behavior around Y rotation.
    iPhone XS Max & iOS 13.4 works normally.

  4. ZestyVesty

    May 20, 2020 17:16

    I have been trying to get the gyroscope on iOS 13 to work in Unity 2020.1.0b6, however I am encountering the exact issues as described in this post. Are there any solutions to the problem yet? Or is it still broken in Unity?

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.