You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void Start(){
// Check if the screen orientation is not landscape
if (Screen.orientation == ScreenOrientation.Portrait ||
Screen.orientation == ScreenOrientation.PortraitUpsideDown) {
StartCoroutine (FixLandscape ());
} else {
// Nothing to worry about, call Megacool as normal
StartMegacool ();
}
}
IEnumerator FixLandscape(){
// Turn the screen to landscape left to "reset" to the right size
Screen.orientation = ScreenOrientation.LandscapeLeft;
// Let the rotation happen
yield return new WaitForSeconds(0.5f);
// Go back to auto rotation to reset to the right orientation
Screen.orientation = ScreenOrientation.AutoRotation;
//Call Everything Megacool related
StartMegacool();
}
The text was updated successfully, but these errors were encountered:
This is a bug that Unity has to fix. Temp. fix:
The text was updated successfully, but these errors were encountered: