Disable iPhone "rotating mask"?

Hello everyone!

I just got my first xCode build on my iPhone (3GS, OS4.1) and the game is always in ‘landscape-left’ mode.
It stays in landscape-left fine but when I rotate the iPhone there is some kind of black mask in each corner “animating” a rotation move. I was wondering if it is possible to get rid of that thing in Unity (iPhone Basic 3)??

Thank You!

Run this in a Awake function:

-Mike Berger

Unfortunately that also stops your keyboard rotating, so if you need to use your keyboard (the right way up) at some point you’ll have to have the mask :frowning:

I just found this out :frowning: If you change iPhoneKeyboard.autorotateToLandscapeLeft = false; to true, you will only ever get 1 rotation so your keyboard will work. I have a start screen that I made sure had black borders so you can’t see the rotation. Most of the time this is the screen where the rotation happens so you never see it and the keyboard still works. It’s not perfect, but it’s better than allowing the rotation all the time.

Richard

Awesome thank you for the code Mike! :slight_smile:

Too bad about the keyboard issue, but Gnimmel’s way seems like a good one for the moment. Will play around a bit with it.

Thanks guys!