Best way to auto-rotate device (portrait, landscape etc) without cropping?

Hello! I’m building an app that should be allowed to auto-rotate (like “Letterpress”, if you’ve played that). What is the best method for doing this in a way that does not crop the top/bottom or left/right? Currently I’ve developed a game field in landscape, and when I rotate my device things do auto rotate, but the left/right of the game play is off screen. Is there a way to automatically zoom out the camera or something when rotated out?

Thanks!

You can use Input.deviceOrientation to detect changes in orientation. You can then change the field of view of the camera or the position of the camera based on the orientation of the device.

You Can Use

input.deviceOrientation

and Link Main camera to orientation :wink: