Search Unity

Question Input.gyro

Discussion in 'Editor & General Support' started by Rachan, Mar 14, 2023.

  1. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    768
    Hi there!

    I wondering why input.gyro.attitude when start application in landscape and portrait are difference?

    Such as, if you start application in landscape mode, the Y axis of gyro is in landscape X of device,

    But if you start application in portrait mode the Y axis was changed to upside down instead.

    I don't know why...

    Thanks!!!
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,729
  3. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    768
  4. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    768
    Last edited: Mar 15, 2023