docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Supported sensors reference

    Each sensor device implements one or more controls that represent the data read by the sensor. The following sensors are available:

    Sensor Description Android iOS Web
    Accelerometer Measures the acceleration of a device. Yes Yes Yes
    Gyroscope Measures the angular velocity of a device. Some platforms remove the sensor bias from this value and some don't. Refer to Gyroscope bias and drift. Yes Yes Yes
    BiasCorrectedGyroscope Measures the angular velocity of a device with the sensor bias removed. Refer to Gyroscope bias and drift. Yes Yes No
    GravitySensor Determines the direction of the gravity vector relative to the device. Yes Yes Yes
    AttitudeSensor Determine the orientation of a device. Yes Yes Yes
    DeviceOrientationSensor Reports the physical orientation of the device as a discrete value (for example portrait, landscape, face up or face down). Yes Yes Yes
    LinearAccelerationSensor Measures the acceleration of a device unaffected by gravity. Yes Yes Yes
    MagneticFieldSensor Represents the magnetic field that affects the device. Yes No No
    CompassSensor Reports the device's heading relative to magnetic and true north. Yes Yes Yes
    LocationSensor Reports the device's geographic location (latitude, longitude, altitude) using GPS. Yes Yes Yes
    LightSensor Represents the ambient light measured by the device. Yes No No
    PressureSensor Represents the atmospheric pressure measured by the device. Yes No No
    ProximitySensor Measures how close the device is to the user. Yes No No
    HumiditySensor Represents the ambient air humidity. Yes No No
    AmbientTemperatureSensor Represents the ambient air temperature. Yes No No
    StepCounter Represents the user's footstep count. Yes Yes No
    HingeAngle Represents the hinge angle of foldable devices. Yes No No
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)