- Home /
Question by
siddharth3322 · Feb 10, 2018 at 08:15 PM ·
androidtiltdeviceorientationscreen.orientation
Input.deviceOrientation Vs Screen.orientation
As my title suggest, what is the difference between Input.deviceOrientation to Screen.orientation.
When to use each of this?
Comment
You can set or get the Screen orientation by Screen.orientation You can get device orientation by Input.deviceOrientation even if you have not allowed that orientation.
For example, if you have not allow Portrait Upside Down in Auto Rotation, then app will not auto rotate to that orientation but it will return Portrait Upside Down in Input.deviceOrientation when device is Upside Down.
Your answer
Follow this Question
Related Questions
Android Tilt controls help 1 Answer
DeviceOrientation not working fine 0 Answers
Why do game objects look skewed during device rotation 1 Answer