In this recipe, we created a panel (Panel-stars) in which to display the large Stars title text and three inventory slot panels to show how many stars can be collected, as well as how many have been collected at any point in the game. Each star panel slot is a UI Panel with a circular Knob background image and two children, one showing a gray icon image and a second showing a colored icon image. When the colored icon image GameObject is disabled, it will be hidden, which reveals the gray icon. When both the colored and gray images are disabled, then an empty circle will be shown, which could, perhaps, be used to indicate to the user that a general-purpose location is empty and available in the inventory.
The PickupUI script class has two public variables that are references to the gray and colored icons for the GameObject they relate to. Before the scene starts (the Awake() method is used), the script hides the gray and colored icons and&...