ashish.patel@portfolio:~$ notes

Save & Load System Using Unreal Engine 5

To preserve player progress between sessions, I built a complete save and load system in Unreal Engine 5 using SaveGame objects, gameplay state serialization, and slot-based saving in C++.

Published in Category:

Tutorial

Read time:


INTRODUCTION

While developing gameplay systems in Unreal Engine 5, I needed a reliable way to store player progression, collected items, and world state between game sessions.

To achieve this, I implemented a modular Save & Load system using Unreal Engine’s SaveGame framework and C++ gameplay logic.


SYSTEM GOALS

The save system was designed to:

• Store player progress
• Save collected currency/items
• Track checkpoints
• Restore player position
• Handle persistent world data
• Support future expansion


SAVEGAME CLASS

The first step was creating a custom SaveGame class to hold gameplay data.

This included:
• player location
• coins collected
• unlocked progress
• current level data

SAVING DATA

When the player interacts with a save point or completes important gameplay events, the system writes data into the save slot.

CODE EXAMPLE
UGameplayStatics::SaveGameToSlot(
    SaveGameInstance,
    TEXT("PlayerSave"),
    0
)

UGameplayStatics::SaveGameToSlot(
    SaveGameInstance,
    TEXT("PlayerSave"),
    0
)

UGameplayStatics::SaveGameToSlot(
    SaveGameInstance,
    TEXT("PlayerSave"),
    0
)


LOADING DATA

At game startup, the system checks if a save file exists and restores the saved values.

CODE EXAMPLE
if (UGameplayStatics::DoesSaveGameExist("PlayerSave", 0))
{
    SaveGameInstance =
        Cast<UMySaveGame>(
            UGameplayStatics::LoadGameFromSlot("PlayerSave", 0)
        );
}
if (UGameplayStatics::DoesSaveGameExist("PlayerSave", 0))
{
    SaveGameInstance =
        Cast<UMySaveGame>(
            UGameplayStatics::LoadGameFromSlot("PlayerSave", 0)
        );
}
if (UGameplayStatics::DoesSaveGameExist("PlayerSave", 0))
{
    SaveGameInstance =
        Cast<UMySaveGame>(
            UGameplayStatics::LoadGameFromSlot("PlayerSave", 0)
        );
}


RESULT

The final system successfully preserved gameplay progression between sessions and improved the overall player experience.

It also created a scalable foundation for:
• inventory persistence
• quest systems
• checkpoints
• world-state saving
• future RPG mechanics


WHAT I LEARNED

Through this system, I improved my understanding of:

• Unreal Engine SaveGame framework
• gameplay persistence
• C++ serialization workflow
• state management
• scalable gameplay architecture

Analysis

6 Minute Read

Optimizing Treasure Systems with Object Pooling in Unreal Engine 5

This technical note explores how I implemented an object pooling system in Unreal Engine 5 to optimize treasure spawning from breakable gameplay objects while improving performance and scalability.

Tutorial

7 Minute Read

Implementing Weapon Equip & Combat Systems in Unreal Engine 5

This technical note covers how I built a modular weapon equip and combat system in Unreal Engine 5 using sockets, animation montages, overlap detection, and scalable C++ gameplay logic.

Analysis

5 Minute Read

Team-Based Enemy Combat Using FGenericTeamId

While building enemy combat systems in Unreal Engine 5, I needed a way to prevent enemies from damaging allies. This note covers how I implemented team-based AI combat using FGenericTeamId and attitude checks in C++.

© Ashish Patel | 2026

Gameplay Programmer • Unreal Engine 5 • C++

Create a free website with Framer, the website builder loved by startups, designers and agencies.