I have used script below
void OnGUI() {
GUILayout.Label(Input.compass.rawVector.ToString());
}
It returns zero vector on screen.I don’t understand why it doenst work.Compass works well in tests of the phone.
Unity Version: 4.5.5f1
Phone:Samsung Galaxy S4
Andoroid Version:4.4.2