- Home /
2018 Unity 2D Dynamic Resolution
I am making a 2D game in Unity 2018. I was making it using the Unity UI system because I can put everything on a Canvas and then set the Canvas to scale based on the width. This way it was easy to get my backgrounds to always look just the way I want them.
The down side to this is now I want to use some game assets that are made to interact with the Unity 2D stuff like sprites and game objects. I know Unity UI elements are also game objects, but the transforms and everything are not working right because they are UI elements instead of actual game objects.
So my question is is there a way to get the same kind of scaling in Unity 2D with backgrounds and sprites that you can get in the UI using a Canvas?
I would prefer something that is "built in" like the Canvas instead of someone's home grown script. Often those home grown scripts work well in some situations, but not others.
Unless that script is a very well known and supported way of doing what I am trying to do.
Thank you.
Answer by Matthew_Ostil · Oct 12, 2018 at 02:29 PM
No, there is no built in way to handle resolutions for the camera. You need to custom solution that will scale the camera's size for the device.
Your answer
![](https://koobas.hobune.stream/wayback/20220612180220im_/https://answers.unity.com/themes/thub/images/avi.jpg)