# Save Game in c++ ue5

**URL:** <https://forums.unrealengine.com/t/save-game-in-c-ue5/1439075>\
**Category:** C++\
**Tags:** savegame, saved-folders, unreal-engine, cast, question, CPP\
**Created:** [November 30, 2023, 5:46pm UTC](https://forums.unrealengine.com/t/save-game-in-c-ue5/1439075 "2023-11-30T17:46:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Online\_Learner\_2GVso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_2GVso](https://forums.unrealengine.com/u/Online_Learner_2GVso)\
**Post date:** [November 30, 2023, 5:46pm UTC](https://forums.unrealengine.com/t/save-game-in-c-ue5/1439075/1 "2023-11-30T17:46:57Z")

</div>

![a2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/2/9f238d622dbfac7020e2140f5c83aa3f5a3ff294.png)  
 ![a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/c/7ec9fd2c69cecb74efc470b75e11e32c8c18f11f.png)

---

<div class="post-metadata">

**Author:** ![Online\_Learner\_2GVso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_2GVso](https://forums.unrealengine.com/u/Online_Learner_2GVso)\
**Post date:** [November 30, 2023, 5:48pm UTC](https://forums.unrealengine.com/t/save-game-in-c-ue5/1439075/2 "2023-11-30T17:48:14Z")

</div>

Could someone tell to me why in this line : GameSlotSaveGame = Cast\<UGameSlotSaveGame\_CPP\>(UGameplayStatics::LoadGameFromSlot(“SaveGameSlot”, 0)); Why all variables of this class are empty
