Y
Y
Yura Mailler2020-01-03 10:54:49
Unity
Yura Mailler, 2020-01-03 10:54:49

How to make screen resolution for all devices?

Hello! During the launch of the game on the phone, I saw that the screen resolution does not match the resolutions, what should I do? In the unit, I changed the Canvas Scaler current, it did not help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GFX Data, 2020-01-03
@ShockWave2048

It is relatively easy to do this. Just with the Canvas Scaler, the resolution is selected according to your screen ratio, then the Scaler itself adjusts the UI to fit the screen - https://docs.unity3d.com/Packages/[email protected]
Unfortunately Unity UI 1.0 documentation .0 only in English, but with beautiful color pictures))

F
freeExec, 2020-01-03
@freeExec

Because you need to use Anchorsthe layout as a percentage, not absolute pixels.
And in CanvasScalerchoose "Scale depending on the width."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question