In this recipe, we created one simple panel (Panel-background) with the title UI Text as a child GameObject at the top of the game canvas, which shows a grayish background rectangle and the some title text stating Inventory. This indicates to the player that this part of the screen is where the inventory HUD will be displayed.
To illustrate how this might be used to indicate a player carrying stars, we added a smaller panel for one slot in the inventory with a circular background image and in that, added a star icon a child GameObject. We then duplicated the slot panel two more times, positioning them 70 pixels apart. After that, we disabled (made inactive) the star icon of the third slot so that an empty slot circle is shown.
Our scene presents the user with a display, indicating that two out of a possible three stars are being carried. This recipe is a good start to a more general-purpose approach to creating inventory UIs in Unity, and we'll build on this in some...