Unity Learn home
View Tutorial Content

Create a character inventory

Tutorial
Beginner
+10 XP
20 Mins
(52)
Overview
Summary
A common game mechanic is the player inventory: tools, weapons, powers, health, and other items that the player can gain or lose during play. In this tutorial, you will use visual scripting to create Clive’s inventory. In our case, Clive will need a key to unlock a door.
By the end of this tutorial, you’ll be able to:
  • Create a player inventory using the List object type in a visual script.
  • Create Scene variables for a visual script.
  • Remove a GameObject from a Scene in a visual script.
  • Given a desired result, code an appropriate visual script.
Select your Unity version
Last updated: December 11, 2023
2022.3
2021.3
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
Language
English
Create a character inventory