How to keep the value of a variable after reloading the Level?

I will keep the Value of an Variable after i reload the Level. So i set the value of Variable, then i load the same level and the Variable should keep their Value. I know its a basic Question but i dont know how to do this.

You can use game instance to store variable across level but it will lose it value if you quit/play the game (then you will need Save Game file for that).

Create Game Instance:

Set Game Instance:

Create some variable in your game instance:
image

Set/Get variable:

1 Like

what kind of note did you use in the last picture?

It a custom enum variable, so it just a set node variable :innocent:

Thanks!

1 Like

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