Class MagneticFieldSensor
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(InputDeviceBuilder)
Declaration
protected override void FinishSetup(InputDeviceBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
InputDeviceBuilder | builder |
Overrides
MakeCurrent()
Declaration
public override void MakeCurrent()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()