When testing out this code in the api:
https://docs.unity3d.com/ScriptReference/Screen-orientation.html
Error on this line:
Screen.orientation = ScreenOrientation.LandscapeLeft;
Error:
Assets/DeviceChange.cs(186,40): error CS0117:
ScreenOrientation' does not contain a definition for
LandscapeLeft’
Any ideas? I am copying the code from the api so I am confused why it doesn’t work.