- Home /
Text smaller on higher resolution screen than on lower resolution screen
Hi, me and my brother are making a game for android. My phone has a resolution of 540x960, and his phone has a resolution of 1920x1080. All of our canvases in the game use "Scale with screen size" with a reference resolution of 800x600. And they all work great except for one. It's a scoreboard like the one in slither.io. The canvas has a child object that has a vertical layout group, and the text that gets instantiated has a layout element. On my phone the scores look good, but on his phone the scores are really small. Anyone know why? Thanks! :)
Answer by iBicha · Jul 22, 2017 at 03:47 AM
Edit: you might want to edit the layout group and layout element properties, as they are able to control the size of your UI elements. Check pretty much all of the properties of both components (force child resize, fixed width/height etc)
One way to address this is by the canvas scaler. Select the canvas in your scene, go to the inspector, you'll find a Canvas Scaler
component. It controls how to scale the canvas according to screen size. This configuration scales the canvas according to the screen hight, which is also how the camera view works. You can play with this component a bit to check other behaviours.
Whoops, my apologies, I don't know how I misread the question, but you already set the canvas scaler.