Canvas Scalar component

The Canvas Scalar component determines how the items within the canvas will scale. It also determines the pixel density of the items within the UI canvas.

In the Resolution and Aspect Ratio section, we discussed how to build your game at a single resolution or the single aspect ratio. However, most of the time, you will not have the luxury of choosing the resolution or aspect ratio your game will play at. You'll note that I only mentioned specifying the aspect ratio and resolution for the PC, Mac, and Linux Standalone builds, and the WebGL builds. When you build to something that will play on a handheld screen or a TV screen, you cannot guarantee how big that screen will be.

Due to the fact that you cannot guarantee ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.