Summary

Now we know all sorts of techniques for laying out our UI elements. The information covered in this chapter, and the last one, has provided enough tools to create almost any UI layout that you can imagine.

In this chapter, we discussed the following topics:

  • Using Layout Group components to automatically space, position, and align a group of UI objects
  • Using the Layout Element component, the Content Size Fitter component, and Aspect Ratio Fitter component to resize UI elements
  • How to set up a horizontal HUD selection menu
  • How to set up a grid inventory

In the next chapter, we will learn how to access UI components via code and how to use the Event System to allow the player to interact with the UI objects.

Get Mastering UI Development with Unity 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.