- Home /
DeviceOrientation not working fine
Hello,
I'm currently developing an application for my android tablet. I just added a simple GUI label:
GUI.Label(new Rect(10,110,200,100),"Device Orientation " + Input.deviceOrientation.ToString());
It just displays the current orientation on the device. However it has a weird behaviour because it doesn't display the right orientation.
When i hold it Portrait it says LandScapeLeft When i hold it PortraitUpsideDown it says LandScapeRight When i hold it LandScapeLeft it says PortraitUpsideDown When i hold it LandScapeRight it says Portrait
get it?
the Faceup and FaceDown work right.
What am i doing wrong? Is it a problem in the hardware?
Thanks for your help.
Comment