UE4:
UE5:
(Here the player means the thridperson)
R click, BP class → type save game, name as playersave
Open it, add variable name as Playertransform, change type to transform
Go to Player BP, event begin, create nodes as follow, slot name type as 1 means scenario 1
(Create player UI widget and add to viewport is from another tutorial):
Branch for false BP:
Branch to True:
(promote to variable for the SET node, then drag its output and type Get Player Transform)
Create Save and Load Button:
Make node as follow, keypad 1 for save:
Keypad 2 for load:
Connect Save game to slot output to Load game from slot input in event begin play.
Final nodes are like this, something missed from earlier screencap are fixed below:
Now if exit the game from UE, and play again, will start from the previous save spot (but score and other things will restart, only location keep saved before).
To delete the save and start game in beginning, need to go to folder to delete the file: