Now it is time to show the player some information about their character, the state of its life, and some information about the inventory. To do this, we'll look at the KeyCanvas and HealthCanvas GameObjects to understand how they work to show information on the UI canvas.
Player UI
Inventory UI
We can click on the KeyCanvas GameObject on the scene, but in case we are in a scene where we don't have any, we can just look one up in the folder at Assets | 2D or 3DGameKit | Prefabs | UI Prefabs. The Inventory UI is shown in the scene as follows:
Let's now take a look at the properties of the Key UI component:
The functions are as follows:
Key Icon Prefab | This is the UI icon prefab that will be automatically... |