Click or drag to resize

InputGetMagnetometer Method

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 .

Note: This method only works on Android, iOS and UWP. On other platforms, it always returns .

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Vector3 GetMagnetometer()

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.Input.GetMagnetometer"]

See Also