Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Compass.headingAccuracy always returns 0 (Unsupported)

Discussion in 'Scripting' started by kiraaahhhh, Nov 23, 2014.

  1. kiraaahhhh

    kiraaahhhh

    Joined:
    Sep 12, 2013
    Posts:
    4
    I am trying to detect when my compass is off calibration and force the user to wave the phone around and re-calibarte. Compass.headingAccuracy always returns 0 (meaning unsupported). It's always unsupported on iPhone, iPad & even Android. What is wrong with it ?
     
  2. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,058
    Same still occurs on latest iphone and unity.
     
  3. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
  4. Tobias_Bjorkskog

    Tobias_Bjorkskog

    Joined:
    Feb 12, 2020
    Posts:
    6
    It seems like a Unity bug.
    The Input.compass.trueHeading has a valid value but the previous posts here were asking about Input.compass.headingAccuracy. The accuracy value always returns 0.

    Should be fixed in 2022.1.0a3
    https://issuetracker.unity3d.com/is...ompass-dot-headingaccuracy-is-always-set-to-0
     
    arfish likes this.