How to make the camera stay the same size when changing resolution
Hi, I'm developing a 2D Mobile Game on Unity, and I noticed that when I loaded up my game on an android device, the camera size changed, and stuff was cut off on the sides of the screen. Is there a way to fix this? I dont do much with the camera on Unity so I dont know all too much about it, but if someone knows how to fix it I would appreciate the help. Thanks
yhats not an error so you cant "fix" it, explain what you want to achieve and we can help
I found the same problem, and I still am looking for an answer. The only thing I found was a very messed up way of taking part of your background or fixed objects and transform them into canvas parts, then set this canvas to scale with the screen size...
well thats a terrible suggestions, and really overenginer, you cant find an answer if you dont ask a question, whats your issue? what do you want to achieve? your game will never look the same in a 18:9 samsung s9 and a 16:10 standart tablet, you need to make your app responsive
Answer by Marioooo · Sep 01, 2020 at 03:56 PM
Hello! this is a common problem on mobile... this is due because the resolution you're working on is not the same as the one on your phone and not all phones have the same screen size or aspect ratio...
i've never tried to overcome this, so if you just want to test your game on your phone for now, then match the play screen size with your phone's screen size, if not, then you have to adapt your game with a script to focus on certain points...
you can google some more information searching "unity mobile screen scaling" or stuff like that. Hope this helps!
Your answer
Follow this Question
Related Questions
What is the most effective way to structure Card Effects in a Single Player game? 1 Answer
Jitter when moving around a circular path 0 Answers
Add 2D Skeleton to the Scene if Button was pressed 0 Answers
How to make a thrown object land on a certain point e.g a thrown spear landing on its tip 0 Answers
How to make a thrown object land on a certain point e.g a thrown spear landing on its tip 1 Answer