- Home /
Mobile Game Screen Size
Hi ,My question is I'm developing games for mobile and I'm new at this. I learned about the subject named Anchor. Can I scale compatible with every phone with anchor, is it possible only with the scale with screen feature of anchor and canvas? Do I need another adjustment or something additional?
Answer by DemonFangZ · Dec 18, 2021 at 08:02 AM
Anchors are certainly useful for mobile screen size variation. The Canvas Scaler is an additional UI component that should be considered when designing for multiple screen sizes. You might want to consider setting the UI Scale Mode to: Scale with Screen Size. Then adjust the reference resolution, and depending on the expected device orientation (landscape or portrait) you may want to adjust the Match Width or Height slider respectively.
This should help with setting up your UI gameobjects for different phones.
For non-UI gameobjects, I recommend exploring the Camera properties and adjusting the aspect ratios (Default: Free Aspect) in the Game View Window.
Also, I highly recommend exploring the Device Simulator package, to quickly test out a multitude of different screen sizes, aspect ratios, notches, curved corners, etc.
Thanks for your answer, I'm adding objects that are not UI elements to the canvas, do you think it's a problem?