Adjust UI, On Device Orientation Change

Hello again!

I think the title is fairly clear and you know what I want to achieve.
I just want to know if there is simple way, or some kind of “best practice”?

By the way I am using the 4.6 Beta (new GUI).

Thank you in advance!

The anchoring system handles most situations like the other posters noted, however some interfaces can/should be laid out quite differently for various orientations. For those cases, once you know the orientation has changed, you can use the animation system or custom scripting to re-arrange the elements on screen. Here’s how to detect the change:

http://docs.unity3d.com/Manual/MobileAdvanced.html

“You can retrieve device orientation by accessing the Screen.orientation property.”

actually Unity - Manual: Advanced Unity Mobile Scripting