From the Screen.orientation
description I get
If the value is set to
ScreenOrientation.AutoRotation
then the screen will select [...] automatically as the device orientation changes.
This seems to imply that if the screen does auto-rotate, then Screen.orientation
has been set to ScreenOrientation.AutoRotation
.
If that's so, how can I know in which direction it has been auto-rotated?
Disabling the auto-rotation doesn't count (obviously), and I need to distinguish between LandscapeLeft
and LandscapeRight
, so checking height and width doesn't work either.
This should be cross-platform, without including any kind of non-C# plugin.
(the answer, given this documentation, seems to be "you can't", but maybe I'm missing something)