Canvas
Create a UI Canvas to hold all your UI elements.
阅读时间1 分钟最后更新于 1 个月前
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 Studio. 3D UI canvases aren't supported.
Create a Canvas
To create a Canvas:- In the Hierarchy, click the + button to open the Create menu.
- 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 aUI TransformUI Transform