Hi I have a Unity app which uses google Cardboard SDK to enable stereoscopic view so I will have a VR enabled app. My app runs perfectly fine.
But there is a problem if
One way to let your app appear in both LandscapeLeft and LandscapeRight, without getting fixed to only one, is in the Start method to enable the screen settings in this sequence:
void Start () {
Screen.orientation = ScreenOrientation.Landscape;
Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false;
}
Basically you force one side, then enable automatic rotation, and then prevent the rotation from being Portrait.
Note that this way your application can work on both Landscapes, so you only need to rotate the screen left or right.
-
Note also that this also works for one VR applications with Cardboard as any other.