Hi, folks!
Can someone help me out - i want to disable iOS default rotation effect (my game has a static rotation (Landscape) and this effect makes no sense in this case).
Thanks in advance!
Hi, folks!
Can someone help me out - i want to disable iOS default rotation effect (my game has a static rotation (Landscape) and this effect makes no sense in this case).
Thanks in advance!
You have to disable the auto rotation in the keyboard class. This forum post explains it. Just make sure to set the one you want to true and the others to false.
ex.
//js
function Awake () {
iPhoneKeyboard.autorotateToPortrait = false;
iPhoneKeyboard.autorotateToPortraitUpsideDown = false;
iPhoneKeyboard.autorotateToLandscapeLeft = false;
iPhoneKeyboard.autorotateToLandscapeRight = false;
}