Compass.headingAccuracy always returns 0 (Unsupported)

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 ?

Same still occurs on latest iphone and unity.

Have you tried to consult the Unity manual, before necroposting to a 7 year old thread?

Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable location updates by calling Input.location.Start().

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/issues/android-input-dot-compass-dot-headingaccuracy-is-always-set-to-0

1 Like