Unity Learn home
View Tutorial Content

Manage screen size and anchors

Tutorial
Beginner
+10 XP
30 Mins
(275)
Overview
For Educators
Summary
You can spend a ton of time making your UI look perfect on your screen, but what happens if someone opens your application on a screen with a different size or a different shape? In this tutorial, you’ll learn how to consider the screen’s aspect ratio and use Canvas Anchors to make sure your UI elements stay where you want them to.
By the end of this tutorial, you'll be able to:
  • Preview different aspect ratios for your project.
  • Understand the role of the Canvas GameObject in designing a UI.
  • Position 2D elements on screen by using the Rect Transform component and Rect tool.
  • Control how UI elements scale, rotate, and reposition relative to other objects on screen by editing the anchor and pivot points.
  • Anchor a UI element to different parts of a Canvas by using presets and by positioning it manually.
  • Control how the entire UI responds to changes in screen resolution by understanding different Canvas Scaler modes.
Select your Unity version
Last updated: August 07, 2023
2022.3
2021.3
2020.3
Language
English
Also included in
Manage screen size and anchors