Download

Passing Variables Between Levels?

Hi, So basically I have a level dedicated to to the Main Menu and it has some settings like Player count and Character select.

I assign the variables in the GameMode blueprint but when I open the new level all the variables reset in the GameMode.

How do I keep the variables from changing when the game loads a different level?

Hi Mark!

Create a Save Game with the variables you want to share between levels.
When you finish the Level1 (Main Menu in your case): Save Game to Slot.
When you start the Level2: Load Game from Slot.

I think this way is quick and easy. Let me know if you need something more.

…or store the values in a GameInstance object. It is specifically designed to survive level changes.