General

The Inventory system is a simplified version of Lyra setup, with some customizations.

Each item is defined by its Item Definition asset, where you can specify Name, Description, Texture etc…

image.png

Here you can also add Fragments to the item, that allow you to expand its definition.

Once you create the definition, you can use AddItemByDefinition function to add it to Inventory.

image.png

Quick Slots & Equippable Items

Player Character has a maximum number of “quick slots” it can hold. By default it’s set to 2, but you can change it on EquipmentManagerComponent.

image.png

To add an item to quick slot you can use the following function:

image.png

By default, items are not equippable.

To mark an item as “equippable”, you need to add the “Ast Item Fragment Equippable Item” Fragment in the Item Definition, specifing its Equipment Definition.

image.png

If you want that your item is automatically set as current active quick slot when added to inventory, check “Set As Active Slot on Added” in its Equipment Definition.

Once you setup the item, you have 2 options for equipping it: