Dynamically Change Screen Orientation on Android

Hello JackTM,

You should set the camera aspect ratio. If your screen ratio is 16:9 then camera ratio 0.5625 for landscape and 1.7777 for portrait. So, PortraitRatio= ScreenHeight / ScreenWidth and LandscapeRatio= ScreenWidth/ScreenHeight.

200275-ratio.png

1 Like