O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Inventory System

The inventory system is one of the most critical components of an RPG. It will be used to store all important game elements that the player will need in your game environment. This chapter will guide you on how to create a simple generic Inventory System that can be utilized and extended as you see fit.

Here is a breakdown of the chapter:

  • Inventory system
    • Weighted inventory
    • Determining item types

  • Creating inventory items
    • Creating the prefab
    • Adding Inventory Item Agent
    • Inventory items defined as prefabs

  • Inventory interface
    • Creating the inventory UI framework
    • Designing a dynamic item viewer
      • Adding a Scroll View
      • Adding elements to PanelItem and Scroll View
      • Adding txtItemElement dynamically

    • Building the final inventory item UI

  • Integrating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required