Day 13 - Stackable Inventory System in C++ (Unreal Engine 5)

Hello everyone,

I’ve just completed Day 13 of my Unreal Engine 5 Gameplay Engineer journey.

Today I upgraded my inventory system by implementing item stacking in C++.

Before this update, collecting three coins created three separate inventory entries:

Coin

Coin

Coin

Now the inventory automatically groups identical items into a single stack:

Coin x3

Features implemented:

:white_check_mark: Stackable Inventory System

:white_check_mark: Quantity Tracking

:white_check_mark: Inventory Stack Management

:white_check_mark: Consumable Integration

:white_check_mark: Stack Reduction on Item Use

:white_check_mark: Automatic Stack Removal

Current gameplay flow:

Collect Item

↓

Create Stack

↓

Increase Quantity

↓

Use Item

↓

Reduce Quantity

↓

Remove Empty Stack

Example output:

Coin x1

Coin x2

Coin x3

Using: Coin

Coin x2

Using: Coin

Coin x1

Using: Coin

Inventory Empty

Current project systems:

:video_game: Day 1 - First C++ Actor

:video_game: Day 2 - Character Movement

:video_game: Day 3 - Health System

:video_game: Day 4 - Sprint System

:video_game: Day 5 - Double Jump

:video_game: Day 6 - Interaction System

:video_game: Day 7 - Collectible Items System

:video_game: Day 8 - Inventory System

:video_game: Day 9 - Equipment System

:video_game: Day 10 - Item Usage System

:video_game: Day 11 - Consumable Items System

:video_game: Day 12 - Consumable Item Removal System

:video_game: Day 13 - Stackable Inventory System

This upgrade makes the inventory behave much closer to a real RPG, survival game, or loot-based system.

Video:Day 13:https://youtu.be/GxD_hRCeYnI

I’d love to hear feedback, suggestions, or code review comments from other Unreal Engine developers.

Thank you!