Class MagneticFieldSensor
Input device representing the magnetic field affecting the device playing the content.
Inherited Members
Namespace: UnityEngine.InputSystem
Syntax
public class MagneticFieldSensor : Sensor
Properties
current
Declaration
public static MagneticFieldSensor current { get; }
Property Value
Type | Description |
---|---|
MagneticFieldSensor |
magneticField
TODO
Declaration
public Vector3Control magneticField { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
Remarks
Values are in micro-Tesla (uT) and measure the ambient magnetic field in the X, Y and Z axis.
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
MakeCurrent()
Declaration
public override void MakeCurrent()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()