Skip to main content
Notice removed Canonical answer required by CommunityBot
Bounty Ended with no winning answer by CommunityBot
remved ios tag
Link
Jari Komppa
  • 7.9k
  • 3
  • 30
  • 62
Notice added Canonical answer required by DormoTheNord
Bounty Started worth 50 reputation by DormoTheNord
Tweeted twitter.com/#!/StackGameDev/status/291666704138895362
Source Link
DormoTheNord
  • 429
  • 1
  • 4
  • 14

Disable autorotation if Android has it disabled

I'm making a game for Android in Unity. I wanted the game to handle screen rotations, so I set "Default Orientation" to "Auto Rotation. This works well, except for one issue:

If you disable auto-rotation in the device's settings, the game ignores this and keeps autorotation.

How would I go about making it disable autorotate when the Android device is set to disable autorotate?