Change rotation of GUI button in unity3d

Hi, I added a button screen when device is in portrait mode so I want to change its rotation when device move to landscape. I don’t want to rotate whole screen just to rotate button to 90 and 270 angle and I am using Purchased Unity3.5. how this is possible. Thanks in advance…

1 Answer

1

You can use: GUIUtility.RotateAroundPivot. Most of the code I’ve see or used personally saves and restores the GUI.Matrix when doing the rotating.