- Home /
Question by
BaronKiko · Jun 22, 2017 at 07:23 PM ·
rotationuigameorientationrotation detection
Handle screen rotation manually
Hi all,
I am writing a small game in unity and I would like to handle screen rotation manually as the game should look the same regardless of orientation but the UI needs to rotate. Unfortunately unity changes the canvas on rotation however to get the screens orientation (with respect to rotation lock) you have to have rotation enabled.
I have considered just locking the rotation and doing rotation manually with the accelerometer but this could leave the android/ios menu at the top (and the home/back buttons) on the wrong edge and as I can tell there is no way to detect rotation lock.
I really would like this feature so hopefully it's possible.
Comment