# Saving Complex Parameters

**URL:** <https://forums.unrealengine.com/t/saving-complex-parameters/1155469>\
**Category:** Blueprint\
**Tags:** savegame, save-game, unreal-engine, UE5, question, Blueprint\
**Created:** [May 5, 2023, 2:57pm UTC](https://forums.unrealengine.com/t/saving-complex-parameters/1155469 "2023-05-05T14:57:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![T4l\_R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T4l\_R](https://forums.unrealengine.com/u/T4l_R)\
**Post date:** [May 5, 2023, 2:57pm UTC](https://forums.unrealengine.com/t/saving-complex-parameters/1155469/1 "2023-05-05T14:57:52Z")

</div>

Hi all,  
Up until now I managed to use the Save Game Object to save simple parameters (like like strings, floats and even skeletal meshes. Now I’m trying to save an object I created with multiple parameters inside of it and not only that, I want to save an array of them.  
I tried doing it the usual way and while when moving from one level to another works, when I close and reopen the game the array is empty, meaning it didn’t really save it.  
Is there another way that I’m not aware of to save objects and/or arrays?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 5, 2023, 3:48pm UTC](https://forums.unrealengine.com/t/saving-complex-parameters/1155469/2 "2023-05-05T15:48:18Z")

</div>

You can’t save objects, you can only save their data. Look into marketplace plugins if you do not want to deal with the native, and rather underwhelming, save game system.

- create structs to represent actor data:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/e/04eb6768ca30cb00dc93f9e7c334f111236dca96.png)

- each actor holds manipulates its own struct (strings, floats and even skeletal meshes):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/2/8f25d6954745aadb2d9c72a9961270601103af1c.png)

- a Save Game object holds an array of those structs (nested arrays are a thing, too):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/b/d9b032f8563776717151e50868d24d3adf473f80.png)

We loop through the entities in the world, fetch their structs and push them into the array in the Save Game Object; which we can then save to disk.

When we load the game, loop through the array and re pawn actors using the data in the struct array.

* * *

The above suggestion focuses on arrays but is otherwise incomplete; for the the whole process:

> **[Saving and Loading Your Game](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/SaveGame/)**
>
> Overview of how to save and load your game

---

<div class="post-metadata">

**Author:** ![T4l\_R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T4l\_R](https://forums.unrealengine.com/u/T4l_R)\
**Post date:** [May 5, 2023, 6:58pm UTC](https://forums.unrealengine.com/t/saving-complex-parameters/1155469/3 "2023-05-05T18:58:52Z")

</div>

Saved me again. thanks!
