Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Unity 5

You're reading from  Getting Started with Unity 5

Product type Book
Published in May 2015
Publisher
ISBN-13 9781784398316
Pages 184 pages
Edition 1st Edition
Languages
Author (1):
Dr. Edward Lavieri Dr. Edward Lavieri
Profile icon Dr. Edward Lavieri

Unity 5's UI system


Unity's UI system has recently been re-engineered and is now more powerful than ever. Perhaps the most important concept to grasp is the Canvas object. All UI elements are contained in a canvas. Projects and scenes can have more than one canvas. You can think of a canvas as a container for UI elements.

Canvas

To create a canvas, you simply navigate and select GameObject | UI | Canvas from the drop-down menu. You can see from the GameObject | UI menu pop-up that there are 11 different UI elements, as shown in the following screenshot:

Alternatively, you can create your first UI element, such as a button, and Unity will automatically create a canvas for you and add it to your Hierarchy view. When you create subsequent UI elements, simply highlight the canvas in the Hierarchy view and then navigate to GameObject | UI menu to select a new UI element.

The following table is a brief description of each of the UI elements:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}

UI element

Description

Panel

A frame object.

Button

...