Input.deviceOrientation and Screen.orientation not returning expected values in Editor / Simulator

Hello!

Kinda confused on this one and can’t seem to find an answer through search or in the docs. In the Editor I have the Simulator’s orientation set to Landscape (in this case, for iPhone X). When I press play and check at runtime the return value of Input.deviceOrientation, it’s “unknown” and Screen.orientation is “portrait”.

Is this expected behavior? I would think that at least Screen.orientation would return Landscape.

Thank you for the help!

2 Likes

it would be nice to get an answer to this

Hey i know its been 6 years but did you find the answer? :smile:

Wow! I’m encountering this issue and can’t believe noone has a solution for this…Sad.