- Home /
iPhone in-game move rotation
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.
function FixedUpdate () {
//////// 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:
function FixedUpdate () {
//////// 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,
I think Unity is paused while a movie plays. In that case the movie would not be able to rotate using Unity script.
Answer by rhose87 · Dec 12, 2011 at 02:18 PM
did you came up with an answer? have you tried async load ?
Your answer
Follow this Question
Related Questions
collider then change rotation converse? 0 Answers
Rotating Player 0 Answers
Random rotation along the y axis 1 Answer
How do I translate my ship left and right and have it rotate at the same time? 1 Answer
Character Model direction 1 Answer