Scale UI to Screen Resolution in Unity

Опубликовано: 06 Октябрь 2024
на канале: DA LAB
19,918
236

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.