IOS ScreenOrientation.LandscapeLeft does not work. Please Help,
I want to force my game to start on landscape mode but the code for some reason does not work. I am testing my game using unity Remote 5 on IOS. I am starting the game on portrait mode and my code should force it to landscape mode but it does not. When I print screen orientation after forcing it to switch to landscape it still says portrait. Thanks, Here's my code: using System.Collections; using System.Collections.Generic; using UnityEngine;
public class ScreenBehaviour : MonoBehaviour { // Use this for initialization void Awake() { print("Hello"); Screen.orientation = ScreenOrientation.LandscapeLeft; print(Screen.orientation); //Prints Potrait
}
// Update is called once per frame
void Update()
{
}
}
,
Your answer
Follow this Question
Related Questions
Screen.orientation does not match Input.deviceOrientation 0 Answers
Screen orientation on ios in multitasking menu becomes portrait upside down 0 Answers
Mobile Landscape Orientation switching width with height? 0 Answers
I want to make an app like Forest (see the link below), is there a way i can make this in unity ? 1 Answer