The raw geomagnetic data measured in microteslas. (Read Only)
function OnGUI() { GUILayout.Label("Magnetometer reading: " + Input.compass.rawVector.ToString()); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void OnGUI() { GUILayout.Label("Magnetometer reading: " + Input.compass.rawVector.ToString()); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def OnGUI() as void: GUILayout.Label(('Magnetometer reading: ' + Input.compass.rawVector.ToString()))