Screen resolution

Different screen resolutions ruins how the game looks and the camera is out of place.
How can I fix this?

You’ll need to be far more specific for anyone to help.

What’s your issue - UI? scene proper?
If UI, are you using uGUI or something else?
Screen shots of how it should look vs what you get?

I managed to fix the camera with a script i found on the internet, but the only problem right now is the UI.
The texts are positioned different on different resolutions

Like I said, more info needed…

What text? Are you using uGUI or something else?

Screen shots?

I am using Text, the game is 2D.
Some screenshots:
1024x768
800x600

Try this vid, will likely help:

1 Like

I would recommend you to scale the image by screen resolution.

And this is how you do it
Step 1: Create a canvas. Create a text object and set it as child object from the canvas.
Step 2: Open the inspector of the canvas.
Step 3: The canvas inspector contains a component it’s name is “Canvas Scaler”, change the “UI Scale Mode” to “Scale with Screen Size”, then change the reference resolution to your target resolution (for example 480x800) and set “Match” to 0.5.

Now open the inspector of your main camera. The main camera inspector has a component “Camera” it contains a size variable, change the size variables value to the half of the height of your target resolution.

That’s the way I handle it.

Thank you so much. Is it the best thing to do for every game i make? (2d games)