Scale UI to Screen Resolution in Unity

preview_player
Показать описание
UI GameObjects could appear bigger or smaller, than you intended, on different screens resolution.

To scale UI game objects appropriately across different resolutions in Unity:

Select Canvas in the Hierarchy. Then, under the Canvas Scaler component in the Inspector, choose Scale with Screen Size.
Input a reference resolution: X and Y of the target size based on which you set the size of your UI component.
Рекомендации по теме
Комментарии
Автор

Easiest to understand explanation I've found! Thanks a lot for this!

Cloud-vnnx
Автор

This video is definitely a life saver for me after searching exhaustively on the internet! Thanks a lot!

kaedeumi
Автор

I understand scaling for different resolutions, but what about aspect ratios?

xxxxx
Автор

what about the scale that is 0, 41x. What does it mean?

jebingos
Автор

Thanks I’ve been trying to do this all day

IlIIlllIIIIl
Автор

Thanks for this! Gets right to the point 👍

HadusMC
Автор

man your f*cking legend you save my life

starlordsniper
Автор

I was scripting me to death to get that result. lol

TearscapeSE
Автор

omfg thank you so much, I hate Unity for this. Great fix.

mehface