Documentation

Unity Spark

Open Unity Spark

Unity Spark

Open the UI Editor and add canvases

Open the UI Editor from a UI element, return to the 3D scene, and add canvases and move between them in Unity Spark.
Read time 2 minutesLast updated 3 hours ago

Open the UI Editor to lay out the UI that's drawn on the screen, and add a canvas for each screen in your game. For more information about how the UI Editor and canvases work, refer to Introduction to game UI.

Open the UI Editor

There's no button to open the UI Editor. To open it:
  1. Set Layout to a layoutthat isn't Chat or Chat wide. These layouts don't show the UI Editor. For more information about layouts, refer to Change and save workspace layouts.
  2. Select any UI element, such as a canvas or a button, in the Hierarchy window or the Scene view. The UI Editor tab opens.
The UI Editor opens only for UI that's drawn on the screen. For a canvas in the 3D world, such as a sign or a floating health bar, edit it in the Scene view instead.
The UI Editor tab next to the Scene tab, showing a main menu canvas with Play, Customize, and Options buttons. The Hierarchy window on the left has UI Canvas selected, and the element toolbar is at the bottom.

The UI Editor with a main menu canvas open.

If nothing in your UI is selected, the UI Editor asks you to select a UI element.

Return to the 3D scene

To go back to the 3D scene, do one of the following:
  • Press Esc.
  • Click empty space in the Scene view, or select a 3D object.
If you click empty space inside the UI Editor, Unity Spark selects the canvas, so you stay in the UI Editor.

Add a canvas

New projects already include a canvas called
UI Canvas
.
To add another canvas:
  1. In the Hierarchy window, select Add object (+).
  2. Select UI > UI Canvas.
If you add any UI element to a scene without a canvas, Unity Spark creates one for you.

Edit a different canvas

The UI Editor shows one canvas at a time. When you have more than one, use the canvas menu to select the canvas to edit.

Additional resources