How to make the rotating frame go away

I’m using Unity 3 Pro for iOS development. When rotating the iPod a sufficient amount, I get this black frame that appears briefly and appears to rotate. I’m using default landscape, and am not changing the screen orientation.

How does one make this very annoying rotating black frame never to appear?

function Start()
{ 
   iPhoneKeyboard.autorotateToPortrait = false; 
   iPhoneKeyboard.autorotateToPortraitUpsideDown = false; 
   iPhoneKeyboard.autorotateToLandscapeRight = false; 
   iPhoneKeyboard.autorotateToLandscapeLeft = false; 
}

That’s it :wink:

I’ve been wondering about this too. Will try it out later and let you know if it’s worked - thanks.

D

Thanks, that did the trick :).

For me too ! Thanks

Hi Guys

Disabling the autorotate properties of the iPhoneKeyboard does seem to fix that black rotating frame issue however I noticed it introduces a different problem which may or maynot be an issue for you, … see link below:

http://forum.unity3d.com/threads/24587-Losing-touch-control-after-dragging-off-screen?p=408054&viewfull=1#post408054

Basically I was experimenting with swiping and when you do a lot of swiping close to the edge of the screen your finger would now and then start touching slightly off screen and when this happened the iPhone doesn’t detect the touches at all!

Dean