Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.14 KB

File metadata and controls

22 lines (17 loc) · 1.14 KB
uid input-system-compensate-orientation

Compensate orientation

If this setting is enabled, rotation values reported by sensors are rotated around the Z axis as follows:

Screen orientation Effect on rotation values
ScreenOrientation.Portrait Values remain unchanged
ScreenOrientation.PortraitUpsideDown Values rotate by 180 degrees.
ScreenOrientation.LandscapeLeft Values rotate by 90 degrees.
ScreenOrientation.LandscapeRight Values rotate by 270 degrees.

This setting affects the following sensors:

  • Gyroscope
  • GravitySensor
  • AttitudeSensor
  • Accelerometer
  • LinearAccelerationSensor