Manual     Reference     Scripting  
  
Scripting > Editor Classes > PlayerSettings Switch to Component   

PlayerSettings.useOSAutorotation  

static var useOSAutorotation : boolean

Description

Let the OS autorotate the screen as the device orientation changes.