Chapter 12: Creating a UI with the UI Toolkit

In the previous chapter, we discussed how to create user interfaces using GUI (also known as Canvas), one of the most common UI systems in Unity, but as we have already mentioned, this is not the only option. While, so far, UGUI has been the preferred option, Unity is working on a replacement called UI Toolkit, and even if it's not finished yet, we thought it would be worthwhile to cover it in this book so that you are prepared for its release.

The idea of this chapter is to create the same UI we created previously, but with UI Toolkit, so you can get a sneak peek into what creating UIs in Unity will look like soon:

Figure 12.1 – The UI created in the previous chapter

In this chapter, we will ...

Get Hands-On Unity 2021 Game Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.