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

Hello everyone,

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

Today I implemented my first Inventory System completely in C++.

Features implemented:

:white_check_mark: USTRUCT Inventory Item
:white_check_mark: TArray Inventory
:white_check_mark: AddItem Function
:white_check_mark: Collectible Integration
:white_check_mark: Item Storage
:white_check_mark: Score System
:white_check_mark: Gameplay Programming in C++

Current functionality:

• Collect items
• Store items in an inventory
• Increase score
• Remove collectibles from the world
• Track inventory size

Example output:

Added Item: Coin
Inventory Size: 1
Score: 1

Added Item: Coin
Inventory Size: 2
Score: 2

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:Day 8:https://youtu.be/D0CGl3eqMWI

I’m building every gameplay system from scratch using Unreal Engine 5 and C++ while documenting my journey to become a Gameplay Engineer.

Any feedback, suggestions, or code review comments are welcome.

Thank you!