Laying Out a Grid Inventory

The last example we'll cover in this chapter is the creation of a gridded inventory system using a Grid Layout Group component and the Content Fitter component. We'll add text to the banner in a later chapter:

To create the gridded inventory system shown in the preceding screenshot, complete the following steps:

  1. The shell that holds this inventory system looks remarkably similar to our Pause Panel (refer to the screenshot in step 16 of the previous example). Since they are so similar, and there is no reason to reinvent the wheel, we will just duplicate the Pause Panel we created in Chapter 2Canvases, Panels, ...

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.