|
How can I make the in-game move rotate when the player rotates the iPhone 180 degrees? I have attached this script to the scene that plays the movie, but it will not rotate.
//////// screen orientation if ((iPhoneInput.orientation == iPhoneOrientation.LandscapeLeft) && (iPhoneSettings.screenOrientation != iPhoneScreenOrientation.LandscapeLeft)) { iPhoneSettings.screenOrientation = iPhoneScreenOrientation.LandscapeLeft; } if ((iPhoneInput.orientation == iPhoneOrientation.LandscapeRight) && (iPhoneSettings.screenOrientation != iPhoneScreenOrientation.LandscapeRight)) { iPhoneSettings.screenOrientation = iPhoneScreenOrientation.LandscapeRight; } } I also tried:
//////// screen orientation if ((iPhoneInput.orientation == iPhoneOrientation.LandscapeLeft) && (iPhoneSettings.screenOrientation != iPhoneScreenOrientation.LandscapeLeft)) { iPhoneSettings.screenOrientation = iPhoneScreenOrientation.LandscapeLeft; } if ((iPhoneInput.orientation == iPhoneOrientation.LandscapeRight) && (iPhoneSettings.screenOrientation != iPhoneScreenOrientation.LandscapeRight)) { iPhoneSettings.screenOrientation = iPhoneScreenOrientation.LandscapeRight; } } function Start () { iPhoneUtils.PlayMovie("TransportTube.m4v", Color.black, iPhoneMovieControlMode.Full); Application.LoadLevel(28); } In-game movies still will not rotate. Any help would be great Thanks,
(comments are locked)
|

I think Unity is paused while a movie plays. In that case the movie would not be able to rotate using Unity script.