Documentation

Support

Unity Lite

Open Unity Lite

Unity Lite

Canvas

Create a UI Canvas to hold all your UI elements.
Read time 1 minuteLast updated 2 days ago

A User Interface (UI) Canvas is the base area where you place all your UI elements. Think of it as a blank sheet where you can place your buttons, text, images, and other controls. You can create multiple canvases in one project to show different UI layouts at different times. Every UI element must belong to a canvas. Currently, you can only create 2D UI canvases in Unity Lite. 3D UI canvases aren't supported.

Create a Canvas

To create a Canvas:
  1. In the Hierarchy, click the + button to open the Create menu.
  2. Select UI > UI Canvas. A new Canvas appears in the Hierarchy panel and the Scene view.

How the Canvas positions UI elements

Each UI element uses a
UI Transform
instead of the regular Transform component. A
UI Transform
is a rectangular transform designed for 2D elements.
The UI Transform enables you to:

Manipulate the UI elements

You can move, resize, and rotate UI elements using the UI Transform. You can do this directly in the Scene view or enter specific values in the Inspector.

Set the anchor

The anchor is where the element stays relative to its parent area (the canvas or another UI element). You can set the anchor to different positions, such as top, bottom, center, or corners. Anchors are especially helpful to make sure your UI looks good on different screen sizes or when the window is resized. Anchors make sure your buttons, text, or images always stay in the correct location.