Save variables from multiple blueprints
I'm looking online for some time at tutorials about saving variable in UE4 and all use the same logic to them. In every tutorial after casting to "save game to slot" the save game object is promoted to a variable in that blueprint. My question is: if I want save other variables that are in a different blueprint what do I have to do about the save game object because it was promoted to a variable that is in a different blueprint.
asked May 04 '19 at 11:11 AM in Blueprint Scripting
"Load Game from Slot" returns the Save Game Object reference you need. As long as you know in what slot you save your game, you can create a new reference to the save file with this node.
Then you can just copy the variables from each blueprint into the Save Game Object locally.
Another way to make it work would be to store the SaveGame Reference in a central BP, like the GameInstance or GameMode. This way you can reference is with the "get Gamemode"/"Get GameInstance"-Nodes and then cast to access the membervar that is the Ref to your savegame object.
answered May 04 '19 at 12:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here