Using GUI (Textures and Text) and Apples "everything must rotate" on iPad rule

I’m just looking to save a little testing time here, so please bear with me.

On iPhone games I’m not making everything rotate- so GUI= no Problem.

But Apple apparently have this awful rule that you should play every game in both orientations on iPad?

Hi5 Apple.

So in theory I guess that means that you cannot use Unity GUI stuff because doesnt it lock to one axis?

so a simple port from iPhone to iPad would involve possibly building a poylgon mesh interface using collision detection for input and a complete interface code rewrite?

Am I gettin’ this rite, or will Unity GUIElements rotate to any orientation?

Sorry if I sound confused, make no mistake, I’m getting there.

Thanks again
~AC :slight_smile:

To get the position of a divice unity is giving you: DeviceOrientation.LandscapeLeft here

For rotating your stuff in this direction: Screen.orientation.LandscapeLeft here
this is also changing direction of gui.

Or must it be rotating instead of just switching between states?

To be sure are you referring to UnityGUI or Unity GUIElements(GUIText/GUITexture)

The joystick is the key issue here to be precise.

Thanks
AC

You don’t have to support both Landscape and Portrait orientations. My iPad game doesn’t.

But you do have to support the opposite, upside down orientation. This can easily be done with a few lines of code. Do a search, someone posted an example here not long ago.

I have an iPad game on the App Store that plays in landscape only and doesn’t rotate.