- Home /
How do I make the main camera full screen in portrait mode?
I set up my camera so it looks the way I want in the "Game" tab. It looks like this:

I'm making a Tetris clone. The main game camera should make it full screen. But when I hit "Play" and go to the "Game" tab with "iPhone 5 Tall" selected as the aspect ratio, it looks like this:

Why does the camera suddenly get so wide? How can I make it so that it looks like the preview?
You can use a Screen.orientation function here's the link : https://docs.unity3d.com/ScriptReference/Screen-orientation.html
Or you can try this one too .
Screen.fullScreen = !Screen.fullScreen;
Answer by lincolnbergeson · Feb 27, 2018 at 02:48 AM
It turns out I had a C# script attached to my camera that I failed to notice. I removed the script and it works!
Your answer
Follow this Question
Related Questions
Handheld.PlayFullScreenMovie: fullscreen video delayed 2 Answers
Mobile Joystick doesn't work when Mouse Cursor is locked 0 Answers
How can I issue automatic updates to an app without the use of the play store/app store? 0 Answers
How do I change this code so that i can press on the joystick more than once to shoot? 1 Answer
WEBGL input field on Android and iOS 0 Answers