0
votes

I'm very new to Android development, I have a simple game that I have tested on a couple of devices. On my Unity screen and on one of the Android devices everything is as normal. However, when I test on other device the game is half way off the screen?! How do I go about making the game truly universal for every screen resolution?

1
You need to show as much as possible, for us to be able to help.... add code, layout, manifest, etc.... are you using what to display the screen? an Activity? - Bonatti

1 Answers

0
votes

Canvas Scalar is your solution. The Canvas Scaler component is used for controlling the overall scale and pixel density of UI elements in the Canvas. This scaling affects everything under the Canvas, including font sizes and image borders.

If a Canvas is set to ‘Screen Space - Overlay’ or ‘Screen Space - Camera’, then the Canvas Scaler UI Scale Mode can be set to Constant Pixel Size, Scale With Screen Size, or Constant Physical Size.

This youtube video outlines how to do it:

https://www.youtube.com/watch?v=XkfhxuNr9Es