- Home /
Question by
pmerilainen · Sep 25, 2020 at 03:22 PM ·
windows 10multiple-monitorsportraitscreen orientation
How I can detect my secondary display is portait-oriented?
I have a situation where my primary monitor is landscape and secondary is portrait oriented. I want to display the game in the secondary display but I need to know whether the view orientation is portrait or landscape.
Screen.width and Screen.height return only the orientation of the primary display and Display class returns the physical resolution regardless of the orientation set in Windows.
I can detect the orientation of the primary display - if height is more than width the orientation is portrait but for the secondary display the resolution is always width > height.
Is there a way to detect the orientation of the secondary display?
Comment