Skip to content

Save and Load System

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
image.png

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:
image.png
Branch to True:
(promote to variable for the SET node, then drag its output and type Get Player Transform)
image.png

Create Save and Load Button:

Make node as follow, keypad 1 for save:
image.png

Keypad 2 for load:
image.png

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:
image.png

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:
image.png
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.