- Home /
Is Screen.Orientation always portrait in Debug Mode?
Hello,
I'm making an app game for iOS and Android. I have an if statement to make sure the HUD looks good while in portrait mode and landscape mode.
if (Screen.orientation == ScreenOrientation.Landscape)
and
if (Screen.orientation == ScreenOrientation.Portrait)
If I debug the screen orientation:
Debug.Log("Screen orentation is: " + Screen.orientation);
It always says it's in portrait. I have set it to auto rotation in player settings. The screen does switch when I turn the iPad or Nexus phone. But it's always in portrait.
Is this because it's the standard mode while debugging? I have the aspect set to: "Free Aspect" as there is no option for "Remote" while working with an iPad.
Thanks
Nils
Comment