Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Enabling gyroscope = UI not working

Discussion in 'Editor & General Support' started by LucasCP, Jan 15, 2019.

  1. LucasCP

    LucasCP

    Joined:
    Feb 17, 2018
    Posts:
    5
    Hi,

    Yesterday I made my UI, worked fine both on PC and Android. Then I added a script enabling the gyroscope and using it for the camera. On PC it did not change a thing ofcourse, but on Android my buttons stopped working. Then I removed my code, one line at a time. And here is the problem :

    m_Gyro = Input.gyro;
    m_Gyro.enabled = true;

    If I enable it on start, buttons don't work. If I don't enable the gyro, it works. No Idea why.