Is there a way to toggle the Player setting's 'auto-rotate' (for mobile builds) from script?

The Auto-rotate function built in to Unity isn’t calibrated properly, and even when the tablet/device’s auto-rotate is locked OFF, unity still rotates the screen. I am getting more familiar with android system settings so eventually I would like my app to check the device’s system setting for auto-rotate to determine whether to rotate the screen or not.

Yes you can.
here check this documentation pages. they are pretty straightforward. if you need further help or maybe, just comment below.

Screen.orientation

Input.deviceOrientation

NorthStar79 · Feb 09 at 02:36 PM
Yes you can. here check this documentation pages. they are pretty straightforward. if you need further help or maybe, just comment below.

Screen.orientation

Input.deviceOrientation