Save and Load a variable with savegame object when the variable is outside of savegame object

Hello everyone,

My problem is that I want to save and load an integer variable which is in a blueprint widget, how can I save and load the variable in a savegame object please ?

The variable is outside the savegame object.

Thank you.

You have to put the variable inside your save game.

Say you’re saving player health. You’d have to create a player health variable inside the save game object. Then before you save the savegame, you set the value to be the same as whatever your player’s health is.

1 Like

Allright,
I try now.

2 Likes

Allright, i will try this.
I’ll let you know if it works.

It works, i just misunderstood something with SaveGame method.

Have a nice day, enjoy.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.