Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Input.compensateSensors

Switch to Manual
public static bool compensateSensors;

Description

This property controls if input sensors should be compensated for screen orientation.

Compensated sensors are accelerometer, compass, gyroscope. Note : currently it fully affects iOS platform and partially Android platform (on Android compensation can't be turned off at the moment).