|
1 | 1 | # Sensor support |
2 | 2 |
|
| 3 | +* [Sampling Frequency](#sampling-frequency) |
| 4 | +* [Accelerometer](#accelerometer) |
| 5 | +* [Gyroscope](#gyroscope) |
| 6 | +* [GravitySensor](#gravitysensor) |
| 7 | +* [AttitudeSensor](#attitudesensor) |
| 8 | +* [LinearAccelerationSensor](#linearaccelerationsensor) |
| 9 | +* [MagneticFieldSensor](#magneticfieldsensor) |
| 10 | +* [LightSensor](#lightsensor) |
| 11 | +* [PressureSensor](#pressuresensor) |
| 12 | +* [ProximitySensor](#proximitysensor) |
| 13 | +* [HumiditySensor](#humiditysensor) |
| 14 | +* [AmbientTemperatureSensor](#ambienttemperaturesensor) |
| 15 | +* [StepCounter](#stepcounter) |
| 16 | + |
3 | 17 | Sensors are [`InputDevices`](Devices.md) that measure environmental characteristics of the device that the content is running on. Unity currently supports sensors on iOS and Android. Android supports a wider range of sensors than iOS. |
4 | 18 |
|
5 | 19 | Unlike other devices, sensors are disabled by default. To enable a sensor, call [`InputSystem.EnableDevice()`](../api/UnityEngine.InputSystem.InputSystem.html#UnityEngine_InputSystem_InputSystem_EnableDevice_UnityEngine_InputSystem_InputDevice_)). |
@@ -36,7 +50,7 @@ Each sensor Device implements a single Control which represents the data read by |
36 | 50 | |[`ProximitySensor`](#proximitysensor)|Yes|No|[`distance`](../api/UnityEngine.InputSystem.ProximitySensor.html#UnityEngine_InputSystem_ProximitySensor_distance)|[`AxisControl`](../api/UnityEngine.InputSystem.Controls.AxisControl.html)| |
37 | 51 | |[`HumiditySensor`](#humiditysensor)|Yes|No|[`relativeHumidity`](../api/UnityEngine.InputSystem.HumiditySensor.html#UnityEngine_InputSystem_HumiditySensor_relativeHumidity)|[`AxisControl`](../api/UnityEngine.InputSystem.Controls.AxisControl.html)| |
38 | 52 | |[`AmbientTemperatureSensor`](#ambienttemperaturesensor)|Yes|No|[`ambientTemperature`](../api/UnityEngine.InputSystem.AmbientTemperatureSensor.html#UnityEngine_InputSystem_AmbientTemperatureSensor_ambientTemperature)|[`AxisControl`](../api/UnityEngine.InputSystem.Controls.AxisControl.html)| |
39 | | -|[`StepCounter`](#stepcounter)|Yes|No|[`stepCounter`](../api/UnityEngine.InputSystem.StepCounter.html#UnityEngine_InputSystem_StepCounter_stepCounter)|[`IntegerControl`](../api/UnityEngine.InputSystem.Controls.IntegerControl.html)| |
| 53 | +|[`StepCounter`](#stepcounter)|Yes|Yes|[`stepCounter`](../api/UnityEngine.InputSystem.StepCounter.html#UnityEngine_InputSystem_StepCounter_stepCounter)|[`IntegerControl`](../api/UnityEngine.InputSystem.Controls.IntegerControl.html)| |
40 | 54 |
|
41 | 55 | ## Sampling frequency |
42 | 56 |
|
@@ -97,3 +111,5 @@ This Input Device represents the ambient air temperature measured by the device |
97 | 111 | ## <a name="stepcounter"></a>[`StepCounter`](../api/UnityEngine.InputSystem.StepCounter.html) |
98 | 112 |
|
99 | 113 | This Input Device represents the user's footstep count as measured by the device which is running the content. |
| 114 | + |
| 115 | +>NOTE: To access the pedometer on iOS/tvOS devices, you need to enable the [__Motion Usage__ setting](Settings.md#iostvos) in the [Input Settings](Settings.md). |
0 commit comments