- Home /
Detect ipad landscape right/left on startup then lock it.
Is it possible to detect the current landscape as either right or left during the startup process and then permanently set it. I have an app that i don't want to start upside down, but it can't have autorotation on because a plugin (screenrecorder) I am using cannot handle autorotation.
Answer by Kiloblargh · May 15, 2013 at 07:54 PM
Yes, sure you can do that. Have you tried?
Get the device orientation, Set the screen orientation. What else do you need?
This doesn't seem to work. I put it in the Awake function.
if(Input.deviceOrientation==DeviceOrientation.LandscapeRight)Screen.orientation = ScreenOrientation.LandscapeLeft;
Your answer
![](https://koobas.hobune.stream/wayback/20220613102307im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why do I get lower framerate in Portrait than I do in Landscape? Can I fix this? 1 Answer
How can I limit my app to specific orientations? 2 Answers
Screen rotates despite playersettings set to: Landscape Left 1 Answer
Making unity play nice with iPad and multiple interface orientations 1 Answer
Screen orientation change in scenes (unwanted effect) 1 Answer