Search Unity

How to disable accelerometer on Android?

Discussion in 'Android' started by Bryan_Wu, May 7, 2018.

  1. Bryan_Wu

    Bryan_Wu

    Joined:
    Apr 30, 2018
    Posts:
    1
    Hi all,
    I want to know how to disable the collection data from the accelerometer sensor on Android, and I know this can be done on iOS platforms (https://docs.unity3d.com/Manual/iphone-iOS-Optimization.html ).
    But it seems that there is no way to avoid on Android?
    The extra unnecessary collection will cause the power consumption of the device to increase.
    Is there a way to turn this feature off or adjust the collection frequency? Thank you for your help!
     
    Last edited: May 7, 2018
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
    Hi!
    At the moment there is no way to disable the accelerometer on Android or adjust the collection frequency.
    We may provide the way to adjust the frequency in the future, but not the possibility to disable it (some other things, like screen rotation, depend on the accelerometer being enabled).
     
    Bryan_Wu likes this.