InputSingleton.getMagnetometer

Returns the magnetic field strength in micro-Tesla for all axes of the device's magnetometer sensor, if the device has one. Otherwise, the method returns constant Vector3.ZERO. Note: This method only works on Android, iOS and UWP. On other platforms, it always returns constant Vector3.ZERO.

struct InputSingleton
@nogc nothrow const
Vector3
getMagnetometer
()

Meta