Device Auto-Rotation


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.

we always use relative coordinate in gui, Screen、PlayerSettings、deviceOrientation class may help you ~ ~