> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/how-to-use-and-guides/inventory-hotbar-and-chests-considerations.md).

# Inventory, Hotbar & Chests Considerations

This set of guides provides instructions on customizing and configuring general settings for the Hotbar, Inventory, and Chests.

### Inventory Style: Difference Between Grid & Tetris

* Grid: Items take a single slot from the Inventory Grid ( 1x1 Size )
* Tetris: Items can take different spaces & slots from the Inventory Grid ( 1x1, 2x1, 1x2, 2x2, 3x1 etc... ). In Tetris Inventory Style, Items can also be rotated and oriented accordingly. For more information about the Tetris Inventory, please refer to [Tetris Inventory Considerations](/inventory-pro-add-on-documentation/how-to-use-and-guides/tetris-inventory-considerations.md).

### &#x20;Configuring Slot Right Click Event

In the InventoryProManager component, you can configure the action to perform on right-clicking an Inventory Slot. Here, you have 3 options to consider: None, Drop, ContextMenu.

* None: Nothing is performed.
* Drop: Drops the right-clicked Item.
* ContextMenu: A small Menu appears next to the Inventory Slot, allowing you to use, pin, split or drop the Items.

{% hint style="warning" %}
When using a Tetris Inventory Slot style, only ContextMenu can be used.
{% endhint %}

### What´s the Hotbar and what Items can it hold?

The Hotbar is a dedicated row of inventory slots, typically displayed at the bottom of the inventory interface. It is specifically designed to hold weapons only. Once a weapon is placed in the Hotbar, the player gains the ability to equip and use it directly.

Hotbar in Inventory Pro Add-On expands the "Inventory" from FPS Engine´s WeaponController.

### Increase Hotbar Size

Hotbar in Inventory Pro Add-On expands the "Inventory" from FPS Engine´s WeaponController. Therefore, the hotbar size is directly based on the InventorySize value from WeaponController.&#x20;

<figure><img src="/files/9rg3VfH4MXr2VWdVQpCA" alt=""><figcaption></figcaption></figure>

### Swapping & Stacking Items

When moving items in the inventory, you can drop a dragged item onto another slot containing an item of the **same size.** ( Sizes only matter in **Tetris Inventory Style** ).

* If the dragged item and the target item are the **same type**, they will automatically **stack** together, up to the item’s maximum stack limit.
* If they are **different items** but share the **same size**, they will simply **swap positions** in the inventory.

### Assigning Attachments from the Inventory

To assign an attachment to a weapon in the inventory, you can just drag the inventory on drop it on the desired weapon. If the attachment is valid and is compatible, it will be assigned. If not, the items will be swapped as no other action can be performed. A Toast Notification will be shown indicating the action.

### Customize Inventory Slots UI & Style

Inventory & Chests are generated & populated based on their InventoryGridData\_SO files, generated in the [Inventory Designe](/inventory-pro-add-on-documentation/how-to-use-and-guides/inventory-designer-creating-updating-and-deleting-inventory-grid-data.md)[r](/inventory-pro-add-on-documentation/how-to-use-and-guides/inventory-designer-creating-updating-and-deleting-inventory-grid-data.md). Each InventoryGridData\_SO file has a Button Prefab. This prefab stands for the Inventory Slots.&#x20;

<figure><img src="/files/hFMwpr7dh9kEPfIvcnJJ" alt=""><figcaption></figcaption></figure>

To customize this Inventory Slot, *it´s highly recommended to duplicate it first as a back-up.* This way, if the style changes don´t go as expected, we can only assign the Back Up Inventory Slot Prefab back.

You can access the Prefab and modify the position of the Icon, the Amount Text, Colors, Images, Adding Animations etc...

<figure><img src="/files/7H7ldWbvaxVgeIksVBNZ" alt=""><figcaption></figcaption></figure>

### Modifying Inventory, Hotbar & Chest Position in the UI

{% hint style="info" %}
It’s important to understand that **Grid-based Inventory Slots** are generated starting from the **top-left corner**, which acts as the **anchor point** or **origin** of the grid layout.

Both **Inventory** and **Chests** are typically structured as multi-row and multi-column grids, allowing for a larger number of items to be stored. In contrast, the **Hotbar** is a simplified grid consisting of a **single row** with multiple columns, designed specifically for quick-access weapons.
{% endhint %}

<figure><img src="/files/rjcASxR71AxRQwgqZau5" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Take Padding, spacing & other Style customization settings into account.
{% endhint %}

### Inventory Inputs

You can configure Inputs specifically used by the Inventory System in the **`Navigation & Inputs`** Tab inside InventoryProManager.

<figure><img src="/files/iGzoUkyQC00fjmBC93He" alt=""><figcaption></figcaption></figure>
