Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Trouble getting gyro data

Discussion in 'Windows' started by OakTree, Jul 30, 2013.

  1. OakTree

    OakTree

    Joined:
    Feb 15, 2013
    Posts:
    2
    My script calls Input.gyro.attitude, but it gets the same number over time: w=1, x=0, y=0, z=0.
    Input.acceleration works fine.

    I ran this on Sony Vaio Duo 13, windows 8, visual studio 2012 express, Unity Pro. Both the device manager and the online specs say that this device has gyroscope and accelerometer.

    The unity project is built for Windows Store Apps, XAML c++.

    Anyone knows why?:confused:
     
    Last edited: Jul 30, 2013
  2. OakTree

    OakTree

    Joined:
    Feb 15, 2013
    Posts:
    2
    it turns out that the gyroscope on my device is by default turned off. All I needed to do was to enable it in the start