Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Input.compensateSensors

static var compensateSensors: bool;
static bool compensateSensors;
static compensateSensors as bool

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).