- Home /
Fit every screen sizes
Hello everyone, I just finished an endless runner game and i tested it on different android devices. The problem is when i run it, the scene doesnt fit the screen.,the camera is following the player and the scene is moving but i can only see half of the whole scene. When i tested it on bluestack,i can see 75% of total screen of my original game + the scene goes black sometimes. What is the best way so that i can fit the whole scene of the game to every screen sizes? The camera I used is orthographic.
in the game window you can test how the game will be in any resolution, look for a "Free Aspect" select in the corner of game view, you can set the resolution there, and adjust the camera or create a script int the camera to make the adjust, try import Camera package to see some examples.
Answer by Dream_in_code · Sep 11, 2016 at 05:30 AM
Thanks @Sergio7888 for the reply. I have already used the methods you have mentioned. What i was asking was to fit all the aspect ratio automatically. If i choose one resolution from the drop down menu of free aspect it will only work for devices whose resolution i had chosen. So for the code part I got the code here >>> http://gamedev.stackexchange.com/questions/79546/how-do-you-handle-aspect-ratio-differences-with-unity-2d and it is working fine on different resolution.
Answer by Natrad · Mar 20, 2019 at 08:13 AM
Hi there, the same for me. After looking around on the internet about 2 hours :(. Watching a lot of tutorials video. Finally I found the full tutorial that solve this issue. Tested and it worked for me.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Making a bubble level (not a game but work tool) 1 Answer
An OS design issue: File types associated with their appropriate programs 1 Answer
Zooming in and out with an orthographic camera, while the bottom edge is fixed. 0 Answers