Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity 3D Game Development

You're reading from  Unity 3D Game Development

Product type Book
Published in Aug 2022
Publisher Packt
ISBN-13 9781801076142
Pages 370 pages
Edition 1st Edition
Languages
Concepts
Authors (4):
Anthony Davis Anthony Davis
Profile icon Anthony Davis
Travis Baptiste Travis Baptiste
Profile icon Travis Baptiste
Russell Craig Russell Craig
Profile icon Russell Craig
Ryan Stunkel Ryan Stunkel
Profile icon Ryan Stunkel
View More author details
Toc

Unity UI

Before we dive fully into our implementation of UI in our project, we will go over the basics of Unity’s UI system. This will give you an understanding of what items we are using in our systems as well as a couple that we aren’t using that you could use in your projects later. There are two main parts to make this work:

  • Unity Canvas system
  • Unity UI components

We need to go over the Unity Canvas system in a bit of detail first before we start implementing the UI with code so you have a good foundation of its inner workings before trying to add art to it.

Unity canvas system

Unity places its UI inside a canvas system. This is a GameObject that has several components on it by default. To make a canvas, right-click in the Hierarchy window and choose UI, then Canvas. This can be seen in Figure 8.9 below.

Graphical user interface, application  Description automatically generated

Figure 8.9: Menu to create a canvas

When this gets created, you will have a Canvas GameObject and an Event System...

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