How can people make their games look the same on all phones?

I’m making a vertical parkour game. When I open the game on a thin and long phone, the block I put in the right or left corner is not fully visible. How can I handle this?

Lots of different parts:

3D stuff: camera FOV matching
2D stuff: camera orthoSize matching
UI stuff: anchoring and scaling. See below.

It’s always best to deal with it up front. :slight_smile:

Here are the official docs on how to make your UI handle various resolutions and aspect ratios cleanly:

Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:

Usually you need to choose a suitable ScaleMode and MatchMode in the Canvas Scaler and stick with it 100%. Generally if you change those settings you will often need to redo your UI entirely.

I also use this CanvasScalerOrientationDriver utility to make sharing UI for Landscape / Portrait easier. Read what it does carefully.

2 Likes

Thank you!!! So, is it possible to display the camera the same way on every phone?

No, because phones are different shapes and resolutions. This is nothing unique to phones: computers are even worse because sometimes they have multiple different-sized monitors.

With the tools above and proper design and implementation you can make your app fully operational on any phone.

1 Like