Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Screen.orientation api error?

$
0
0
When testing out this code in the api:
[https://docs.unity3d.com/ScriptReference/Screen-orientation.html][1] 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. [1]: https://docs.unity3d.com/ScriptReference/Screen-orientation.html

Viewing all articles
Browse latest Browse all 2891


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>