- Home /
Fixed aspect ratio/resolution independence
I'm interested in porting a 2D puzzle game over to Unity that I've already written using another game framework. The original game has its' UI set up at a fixed 2:3 aspect ratio, and shrinks/enlarges all the sprites to optimally fit any screen size. Any "dead space" at the top or sides of the screen is simply filled with a background image.
My question: Is there a recommended "best practice" way of creating a resolution independent, fixed aspect ratio 2D game like this with Unity? Could I use something like the Prime31 UIToolkit for a 2D game like this?
Answer by Eric5h5 · Oct 30, 2012 at 08:55 PM
You can use this for the aspect ratio part.
Thanks, I don't think I'll use your code, but it gives me some good ideas about how one might go about such a task in Unity. I've written basically the same code for a DO$$anonymous$$-based HT$$anonymous$$L game.
Your answer
Follow this Question
Related Questions
How to make my game look like Odallus? 0 Answers
How to scale according to different mobile resolutions? 0 Answers
Objects move when changing resolution 2 Answers
Stretching Background sprite 4 Answers
Develop 2D game Inside Canvas Scaler 0 Answers