I’m having problems with scaling my game to fit all mobile screens.
So this is my Canvas Scaler:
I didn’t really understand the Reference Resolution thing so, for now, it’s set to my screen size.
I also messed with anchors a bit. When I started I anchored all my UI elements to the sides of the screen I wanted them to stay close to.
Now I have 2 problems:
The first one is that I separated my UI elements into different logical groups, and each group is inside its own empty game object. Thing is, now the anchors are on the sides of this empty game object instead of being on the canvas. What can I do with that?
The second problem is that after I make my UI look good, what about the game itself? The UI might fit into any screen, but for example, on a screen with a smaller width, my player can travel outside the screen. (the player moves right and left). Another example is my background being cut to fit the new screen size. How do I fit the whole game into the new screen size, and not only the UI?