x


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,

more ▼

asked May 19 '10 at 11:05 AM

Crazy Robot gravatar image

Crazy Robot
2 1 1 1

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

Mar 17 '11 at 06:15 AM loopyllama
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

did you came up with an answer? have you tried async load ?

more ▼

answered Dec 12 '11 at 02:18 PM

rhose87 gravatar image

rhose87
78 14 17 17

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2168
x499

asked: May 19 '10 at 11:05 AM

Seen: 1508 times

Last Updated: Dec 12 '11 at 02:18 PM