|
Hi, Is there any callback method in Unity to launch once the autorotation is triggered? I would like to insert some custom code to modify my GUI when the screen orientation is changed. Anyone have an idea of this trick please share with me.
(comments are locked)
|
|
we always use relative coordinate in gui, Screen、PlayerSettings、deviceOrientation class may help you ~ ~ Thanks for advice but I'm using absolute GUI layout. It's just too costly for me to convert the entire UI system to relative coordinate. I know how to use deviceOrientation class to rotate the screen. What I'm looking for is to find a way to start an action once the screen is transforming to a new orientation. Do you have an idea?
May 24 '12 at 05:52 AM
tr1stan
you can check deviceOrientation every frame or analysis Input.GetAccelerationEvent if you want to contol it, you can use Screen.orientation -0-
May 25 '12 at 07:08 AM
YUHUA
(comments are locked)
|
